Skip to content

Commit

Permalink
Converted 5.4 style arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
frankdejonge committed Jan 27, 2014
1 parent 8a06cc9 commit 8ab32f5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/RackspaceTests.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ public function testGetters($function)
public function deleteProvider()
{
return array(
[204, true],
[500, false],
array(204, true),
array(500, false),
);
}

Expand All @@ -158,8 +158,8 @@ public function testDelete($status, $expected)
public function renameProvider()
{
return array(
[201, true],
[500, false],
array(201, true),
array(500, false),
);
}

Expand Down Expand Up @@ -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);
Expand All @@ -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));
}
Expand Down

0 comments on commit 8ab32f5

Please sign in to comment.