File tree 3 files changed +8
-5
lines changed
tests/UnitTest/Definition 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 30
30
"laravel/serializable-closure" : " ^1.0 || ^2.0"
31
31
},
32
32
"require-dev" : {
33
- "phpunit/phpunit" : " ^9.6" ,
33
+ "phpunit/phpunit" : " ^9.6 || ^10 " ,
34
34
"mnapoli/phpunit-easymock" : " ^1.3" ,
35
35
"friendsofphp/proxy-manager-lts" : " ^1" ,
36
36
"friendsofphp/php-cs-fixer" : " ^3" ,
Original file line number Diff line number Diff line change @@ -53,10 +53,10 @@ public function should_resolve_nested_definitions()
53
53
{
54
54
$ this ->parentResolver ->expects ($ this ->exactly (2 ))
55
55
->method ('resolve ' )
56
- ->withConsecutive (
56
+ ->willReturnMap ([
57
57
[$ this ->isInstanceOf (Reference::class)],
58
- [$ this ->isInstanceOf (ObjectDefinition::class)]
59
- )
58
+ [$ this ->isInstanceOf (ObjectDefinition::class)],
59
+ ] )
60
60
->willReturnOnConsecutiveCalls (42 , new \stdClass ());
61
61
62
62
$ definition = new ArrayDefinition ([
Original file line number Diff line number Diff line change @@ -73,7 +73,10 @@ public function should_resolve_multiple_references()
73
73
$ container = $ this ->easySpy (ContainerInterface::class);
74
74
$ container ->expects ($ this ->exactly (2 ))
75
75
->method ('get ' )
76
- ->withConsecutive (['tmp ' ], ['logs ' ])
76
+ ->willReturnMap ([
77
+ ['tmp ' ],
78
+ ['logs ' ],
79
+ ])
77
80
->willReturnOnConsecutiveCalls ('/private/tmp ' , 'myapp-logs ' );
78
81
79
82
$ definition = new StringDefinition ('{tmp}/{logs}/app.log ' );
You can’t perform that action at this time.
0 commit comments