@@ -136,8 +136,8 @@ public function testGetters($function)
136
136
public function deleteProvider ()
137
137
{
138
138
return array (
139
- [ 204 , true ] ,
140
- [ 500 , false ] ,
139
+ array ( 204 , true ) ,
140
+ array ( 500 , false ) ,
141
141
);
142
142
}
143
143
@@ -158,8 +158,8 @@ public function testDelete($status, $expected)
158
158
public function renameProvider ()
159
159
{
160
160
return array (
161
- [ 201 , true ] ,
162
- [ 500 , false ] ,
161
+ array ( 201 , true ) ,
162
+ array ( 500 , false ) ,
163
163
);
164
164
}
165
165
@@ -200,7 +200,7 @@ public function testDeleteDir($status, $expected)
200
200
$ container ->shouldReceive ('getName ' )->andReturn ('container_name ' );
201
201
$ dataObject = Mockery::mock ('OpenCloud\ObjectStore\Resource\DataObject ' );
202
202
$ dataObject ->shouldReceive ('getName ' )->andReturn ('filename.ext ' );
203
- $ container ->shouldReceive ('objectList ' )->andReturn ([ $ dataObject] );
203
+ $ container ->shouldReceive ('objectList ' )->andReturn (array ( $ dataObject) );
204
204
$ container ->shouldReceive ('getService ' )->andReturn ($ container );
205
205
$ container ->shouldReceive ('bulkDelete ' )->andReturn ($ container );
206
206
$ container ->shouldReceive ('getStatusCode ' )->andReturn ($ status );
@@ -213,7 +213,7 @@ public function testListContents()
213
213
$ container = $ this ->getContainerMock ();
214
214
$ container ->shouldReceive ('getName ' )->andReturn ('container_name ' );
215
215
$ dataObject = $ this ->getDataObjectMock ('filename.ext ' );
216
- $ container ->shouldReceive ('objectList ' )->andReturn (new ArrayIterator ([ $ dataObject] ));
216
+ $ container ->shouldReceive ('objectList ' )->andReturn (new ArrayIterator (array ( $ dataObject) ));
217
217
$ adapter = new Rackspace ($ container );
218
218
$ this ->assertInternalType ('array ' , $ adapter ->listContents ('' , true ));
219
219
}
0 commit comments