@@ -47,17 +47,17 @@ public function testInvokeWithContainerEmptyConfig(): void
47
47
$ container = $ this ->createMock (ContainerInterface::class);
48
48
$ container ->expects ($ this ->atLeastOnce ())
49
49
->method ('has ' )
50
- ->will ( $ this -> returnValueMap ([
50
+ ->willReturnMap ([
51
51
[UserRepositoryInterface::class, true ],
52
52
[ResponseFactoryInterface::class, false ],
53
- ])) ;
53
+ ]);
54
54
$ container ->expects ($ this ->atLeastOnce ())
55
55
->method ('get ' )
56
- ->will ( $ this -> returnValueMap ([
56
+ ->willReturnMap ([
57
57
[UserRepositoryInterface::class, $ this ->userRegister ],
58
58
[ResponseInterface::class, $ this ->responseFactory ],
59
59
['config ' , []],
60
- ])) ;
60
+ ]);
61
61
62
62
$ factory = new BasicAccessFactory ();
63
63
@@ -70,14 +70,14 @@ public function testInvokeWithContainerAndConfig(): void
70
70
$ container = $ this ->createMock (ContainerInterface::class);
71
71
$ container ->expects ($ this ->atLeastOnce ())
72
72
->method ('has ' )
73
- ->will ( $ this -> returnValueMap ([
73
+ ->willReturnMap ([
74
74
[UserRepositoryInterface::class, true ],
75
75
[ResponseFactoryInterface::class, false ],
76
76
[ResponseInterface::class, true ],
77
- ])) ;
77
+ ]);
78
78
$ container ->expects ($ this ->atLeastOnce ())
79
79
->method ('get ' )
80
- ->will ( $ this -> returnValueMap ([
80
+ ->willReturnMap ([
81
81
[UserRepositoryInterface::class, $ this ->userRegister ],
82
82
[ResponseInterface::class, $ this ->responseFactory ],
83
83
[
@@ -86,7 +86,7 @@ public function testInvokeWithContainerAndConfig(): void
86
86
'authentication ' => ['realm ' => 'My page ' ],
87
87
],
88
88
],
89
- ])) ;
89
+ ]);
90
90
91
91
$ factory = new BasicAccessFactory ();
92
92
$ basicAccess = $ factory ($ container );
0 commit comments