@@ -38,12 +38,12 @@ public function testCreatesSessionManager()
3838 public function testConfigObjectIsInjectedIfPresentInServices ()
3939 {
4040 $ config = $ this ->getMock ('Zend\Session\Config\ConfigInterface ' );
41- $ services = $ this ->services ->withConfig ([
41+ $ this ->services ->configure ([
4242 'services ' => [
4343 'Zend\Session\Config\ConfigInterface ' => $ config ,
4444 ],
4545 ]);
46- $ manager = $ services ->get ('Zend\Session\ManagerInterface ' );
46+ $ manager = $ this -> services ->get ('Zend\Session\ManagerInterface ' );
4747 $ test = $ manager ->getConfig ();
4848 $ this ->assertSame ($ config , $ test );
4949 }
@@ -52,25 +52,25 @@ public function testFactoryWillInjectStorageIfPresentInServices()
5252 {
5353 // Using concrete version here as mocking was too complex
5454 $ storage = new ArrayStorage ();
55- $ services = $ this ->services ->withConfig ([
55+ $ this ->services ->configure ([
5656 'services ' => [
5757 'Zend\Session\Storage\StorageInterface ' => $ storage ,
5858 ],
5959 ]);
60- $ manager = $ services ->get ('Zend\Session\ManagerInterface ' );
60+ $ manager = $ this -> services ->get ('Zend\Session\ManagerInterface ' );
6161 $ test = $ manager ->getStorage ();
6262 $ this ->assertSame ($ storage , $ test );
6363 }
6464
6565 public function testFactoryWillInjectSaveHandlerIfPresentInServices ()
6666 {
6767 $ saveHandler = $ this ->getMock ('Zend\Session\SaveHandler\SaveHandlerInterface ' );
68- $ services = $ this ->services ->withConfig ([
68+ $ this ->services ->configure ([
6969 'services ' => [
7070 'Zend\Session\SaveHandler\SaveHandlerInterface ' => $ saveHandler ,
7171 ],
7272 ]);
73- $ manager = $ services ->get ('Zend\Session\ManagerInterface ' );
73+ $ manager = $ this -> services ->get ('Zend\Session\ManagerInterface ' );
7474 $ test = $ manager ->getSaveHandler ();
7575 $ this ->assertSame ($ saveHandler , $ test );
7676 }
@@ -86,12 +86,12 @@ public function testCanDisableContainerDefaultManagerInjectionViaConfiguration()
8686 $ config = ['session_manager ' => [
8787 'enable_default_container_manager ' => false ,
8888 ]];
89- $ services = $ this ->services ->withConfig ([
89+ $ this ->services ->configure ([
9090 'services ' => [
9191 'config ' => $ config ,
9292 ],
9393 ]);
94- $ manager = $ services ->get ('Zend\Session\ManagerInterface ' );
94+ $ manager = $ this -> services ->get ('Zend\Session\ManagerInterface ' );
9595 $ this ->assertNotSame ($ manager , Container::getDefaultManager ());
9696 }
9797
@@ -105,12 +105,12 @@ public function testFactoryWillAddValidatorViaConfiguration()
105105 'Zend\Session\Validator\RemoteAddr ' ,
106106 ],
107107 ]];
108- $ services = $ this ->services ->withConfig ([
108+ $ this ->services ->configure ([
109109 'services ' => [
110110 'config ' => $ config ,
111111 ],
112112 ]);
113- $ manager = $ services ->get ('Zend\Session\ManagerInterface ' );
113+ $ manager = $ this -> services ->get ('Zend\Session\ManagerInterface ' );
114114
115115 $ manager ->start ();
116116
@@ -126,13 +126,13 @@ public function testFactoryWillAddValidatorViaConfiguration()
126126 public function testStartingSessionManagerFromFactoryDoesNotTriggerUndefinedVariable ()
127127 {
128128 $ storage = new ArrayStorage ();
129- $ services = $ this ->services ->withConfig ([
129+ $ this ->services ->configure ([
130130 'services ' => [
131131 'Zend\Session\Storage\StorageInterface ' => $ storage
132132 ],
133133 ]);
134134
135- $ manager = $ services ->get ('Zend\Session\ManagerInterface ' );
135+ $ manager = $ this -> services ->get ('Zend\Session\ManagerInterface ' );
136136 $ manager ->start ();
137137
138138 $ this ->assertSame ($ storage , $ manager ->getStorage ());
@@ -148,7 +148,7 @@ public function testFactoryDoesNotOverwriteValidatorStorageValues()
148148 'Zend\Session\Validator\HttpUserAgent ' => 'Foo ' ,
149149 'Zend\Session\Validator\RemoteAddr ' => '1.2.3.4 ' ,
150150 ]);
151- $ services = $ this ->services ->withConfig ([
151+ $ this ->services ->configure ([
152152 'services ' => [
153153 'Zend\Session\Storage\StorageInterface ' => $ storage ,
154154 'config ' => [
@@ -163,7 +163,7 @@ public function testFactoryDoesNotOverwriteValidatorStorageValues()
163163 ]);
164164
165165 // This call is needed to make sure session storage data is not overwritten by the factory
166- $ manager = $ services ->get ('Zend\Session\ManagerInterface ' );
166+ $ manager = $ this -> services ->get ('Zend\Session\ManagerInterface ' );
167167
168168 $ validatorData = $ storage ->getMetaData ('_VALID ' );
169169 $ this ->assertSame ('Foo ' , $ validatorData ['Zend\Session\Validator\HttpUserAgent ' ]);
@@ -179,7 +179,7 @@ public function testFactoryDoesNotAttachValidatorTwoTimes()
179179 $ storage ->setMetadata ('_VALID ' , [
180180 'Zend\Session\Validator\RemoteAddr ' => '1.2.3.4 ' ,
181181 ]);
182- $ services = $ this ->services ->withConfig ([
182+ $ this ->services ->configure ([
183183 'services ' => [
184184 'Zend\Session\Storage\StorageInterface ' => $ storage ,
185185 'config ' => [
@@ -192,7 +192,7 @@ public function testFactoryDoesNotAttachValidatorTwoTimes()
192192 ],
193193 ]);
194194
195- $ manager = $ services ->get ('Zend\Session\ManagerInterface ' );
195+ $ manager = $ this -> services ->get ('Zend\Session\ManagerInterface ' );
196196 try {
197197 $ manager ->start ();
198198 } catch (\RuntimeException $ e ) {
0 commit comments