From 8ab32f5ab9404c4804410e560598ef85b29476f5 Mon Sep 17 00:00:00 2001 From: Frank de Jonge Date: Mon, 27 Jan 2014 08:36:04 +0100 Subject: [PATCH] Converted 5.4 style arrays --- tests/RackspaceTests.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/RackspaceTests.php b/tests/RackspaceTests.php index f9f486975..e68ef34bf 100644 --- a/tests/RackspaceTests.php +++ b/tests/RackspaceTests.php @@ -136,8 +136,8 @@ public function testGetters($function) public function deleteProvider() { return array( - [204, true], - [500, false], + array(204, true), + array(500, false), ); } @@ -158,8 +158,8 @@ public function testDelete($status, $expected) public function renameProvider() { return array( - [201, true], - [500, false], + array(201, true), + array(500, false), ); } @@ -200,7 +200,7 @@ public function testDeleteDir($status, $expected) $container->shouldReceive('getName')->andReturn('container_name'); $dataObject = Mockery::mock('OpenCloud\ObjectStore\Resource\DataObject'); $dataObject->shouldReceive('getName')->andReturn('filename.ext'); - $container->shouldReceive('objectList')->andReturn([$dataObject]); + $container->shouldReceive('objectList')->andReturn(array($dataObject)); $container->shouldReceive('getService')->andReturn($container); $container->shouldReceive('bulkDelete')->andReturn($container); $container->shouldReceive('getStatusCode')->andReturn($status); @@ -213,7 +213,7 @@ public function testListContents() $container = $this->getContainerMock(); $container->shouldReceive('getName')->andReturn('container_name'); $dataObject = $this->getDataObjectMock('filename.ext'); - $container->shouldReceive('objectList')->andReturn(new ArrayIterator([$dataObject])); + $container->shouldReceive('objectList')->andReturn(new ArrayIterator(array($dataObject))); $adapter = new Rackspace($container); $this->assertInternalType('array', $adapter->listContents('', true)); }