Skip to content

Commit d0c25ce

Browse files
committed
use long array syntax in tests
1 parent 5210493 commit d0c25ce

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

tests/functional/BasicTest.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,14 @@ public function nonResponseReturnValueShouldThrowException()
5151

5252
public function provideRequests()
5353
{
54-
return [
55-
[Request::create('/')],
56-
[Request::create('/foo')],
57-
[Request::create('/foo/bar/baz?qux=quux')],
58-
[Request::create('/', 'POST')],
59-
[Request::create('/', 'PUT')],
60-
[Request::create('/', 'DELETE')],
61-
[Request::create('/foo?wat=wob', 'POST')],
62-
];
54+
return array(
55+
array(Request::create('/')),
56+
array(Request::create('/foo')),
57+
array(Request::create('/foo/bar/baz?qux=quux')),
58+
array(Request::create('/', 'POST')),
59+
array(Request::create('/', 'PUT')),
60+
array(Request::create('/', 'DELETE')),
61+
array(Request::create('/foo?wat=wob', 'POST')),
62+
);
6363
}
6464
}

tests/unit/Stack/CallableHttpKernelTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public function handleShouldDelegateToCallable()
2020
$this->assertSame('ok', $response->getContent());
2121
$this->assertSame(1, $spy->getCount());
2222
$this->assertSame(
23-
[$request, HttpKernelInterface::MASTER_REQUEST, true],
23+
array($request, HttpKernelInterface::MASTER_REQUEST, true),
2424
$spy->getCall(0)
2525
);
2626
}
@@ -37,7 +37,7 @@ public function handleShouldDelegateAllArgs()
3737
$this->assertSame('ok', $response->getContent());
3838
$this->assertSame(1, $spy->getCount());
3939
$this->assertSame(
40-
[$request, HttpKernelInterface::SUB_REQUEST, false],
40+
array($request, HttpKernelInterface::SUB_REQUEST, false),
4141
$spy->getCall(0)
4242
);
4343
}
@@ -46,7 +46,7 @@ public function handleShouldDelegateAllArgs()
4646
class SpyCallable
4747
{
4848
private $returnValue;
49-
private $calls = [];
49+
private $calls = array();
5050

5151
public function __construct($returnValue)
5252
{

0 commit comments

Comments
 (0)