@@ -238,7 +238,7 @@ public function testAssertionMapWithSingleAssertions()
238
238
$ roleService = $ this ->getMock ('ZfcRbac\Service\RoleService ' , [], [], '' , false );
239
239
$ assertionPluginManager = $ this ->getMock ('ZfcRbac\Assertion\AssertionPluginManager ' , [], [], '' , false );
240
240
$ assertion = new SimpleAssertion ();
241
- $ assertionPluginManager ->method ('get ' )->will ($ this ->returnValueMap ([
241
+ $ assertionPluginManager ->expects ( $ this -> any ())-> method ('get ' )->will ($ this ->returnValueMap ([
242
242
['bar ' , null , $ assertion ],
243
243
['foo ' , null , $ assertion ]
244
244
]));
@@ -260,7 +260,7 @@ public function testAssertionMapWithMultipleSimpleAssertions()
260
260
$ roleService = $ this ->getMock ('ZfcRbac\Service\RoleService ' , [], [], '' , false );
261
261
$ assertionPluginManager = $ this ->getMock ('ZfcRbac\Assertion\AssertionPluginManager ' , [], [], '' , false );
262
262
$ assertion = new SimpleAssertion ();
263
- $ assertionPluginManager ->method ('get ' )->will ($ this ->returnValueMap ([
263
+ $ assertionPluginManager ->expects ( $ this -> any ())-> method ('get ' )->will ($ this ->returnValueMap ([
264
264
['assertion1 ' , null , $ assertion ],
265
265
['assertion2 ' , null , $ assertion ]
266
266
]));
@@ -281,7 +281,7 @@ public function testAssertionMapWithMultipleAssertions()
281
281
$ roleService = $ this ->getMock ('ZfcRbac\Service\RoleService ' , [], [], '' , false );
282
282
$ assertionPluginManager = $ this ->getMock ('ZfcRbac\Assertion\AssertionPluginManager ' , [], [], '' , false );
283
283
$ assertion = new SimpleAssertion ();
284
- $ assertionPluginManager ->method ('get ' )->will ($ this ->returnValueMap ([
284
+ $ assertionPluginManager ->expects ( $ this -> any ())-> method ('get ' )->will ($ this ->returnValueMap ([
285
285
['assertion1 ' , null , $ assertion ],
286
286
['assertion2 ' , null , $ assertion ]
287
287
]));
@@ -303,7 +303,7 @@ public function testAssertionMapWithMultipleAssertionsWithCondition()
303
303
$ roleService = $ this ->getMock ('ZfcRbac\Service\RoleService ' , [], [], '' , false );
304
304
$ assertionPluginManager = $ this ->getMock ('ZfcRbac\Assertion\AssertionPluginManager ' , [], [], '' , false );
305
305
$ assertion = new SimpleAssertion ();
306
- $ assertionPluginManager ->method ('get ' )->will ($ this ->returnValueMap ([
306
+ $ assertionPluginManager ->expects ( $ this -> any ())-> method ('get ' )->will ($ this ->returnValueMap ([
307
307
['assertion1 ' , null , $ assertion ],
308
308
['assertion2 ' , null , $ assertion ]
309
309
]));
0 commit comments