@@ -26,11 +26,11 @@ public function getServiceLocator(array $factories)
2626
2727 public function testHas ()
2828 {
29- $ locator = $ this ->getServiceLocator (array (
29+ $ locator = $ this ->getServiceLocator ([
3030 'foo ' => function () { return 'bar ' ; },
3131 'bar ' => function () { return 'baz ' ; },
3232 function () { return 'dummy ' ; },
33- ) );
33+ ] );
3434
3535 $ this ->assertTrue ($ locator ->has ('foo ' ));
3636 $ this ->assertTrue ($ locator ->has ('bar ' ));
@@ -39,10 +39,10 @@ function () { return 'dummy'; },
3939
4040 public function testGet ()
4141 {
42- $ locator = $ this ->getServiceLocator (array (
42+ $ locator = $ this ->getServiceLocator ([
4343 'foo ' => function () { return 'bar ' ; },
4444 'bar ' => function () { return 'baz ' ; },
45- ) );
45+ ] );
4646
4747 $ this ->assertSame ('bar ' , $ locator ->get ('foo ' ));
4848 $ this ->assertSame ('baz ' , $ locator ->get ('bar ' ));
@@ -51,13 +51,13 @@ public function testGet()
5151 public function testGetDoesNotMemoize ()
5252 {
5353 $ i = 0 ;
54- $ locator = $ this ->getServiceLocator (array (
54+ $ locator = $ this ->getServiceLocator ([
5555 'foo ' => function () use (&$ i ) {
5656 ++$ i ;
5757
5858 return 'bar ' ;
5959 },
60- ) );
60+ ] );
6161
6262 $ this ->assertSame ('bar ' , $ locator ->get ('foo ' ));
6363 $ this ->assertSame ('bar ' , $ locator ->get ('foo ' ));
@@ -70,9 +70,9 @@ public function testGetDoesNotMemoize()
7070 */
7171 public function testThrowsOnUndefinedInternalService ()
7272 {
73- $ locator = $ this ->getServiceLocator (array (
73+ $ locator = $ this ->getServiceLocator ([
7474 'foo ' => function () use (&$ locator ) { return $ locator ->get ('bar ' ); },
75- ) );
75+ ] );
7676
7777 $ locator ->get ('foo ' );
7878 }
@@ -83,11 +83,11 @@ public function testThrowsOnUndefinedInternalService()
8383 */
8484 public function testThrowsOnCircularReference ()
8585 {
86- $ locator = $ this ->getServiceLocator (array (
86+ $ locator = $ this ->getServiceLocator ([
8787 'foo ' => function () use (&$ locator ) { return $ locator ->get ('bar ' ); },
8888 'bar ' => function () use (&$ locator ) { return $ locator ->get ('baz ' ); },
8989 'baz ' => function () use (&$ locator ) { return $ locator ->get ('bar ' ); },
90- ) );
90+ ] );
9191
9292 $ locator ->get ('foo ' );
9393 }
0 commit comments