File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
Bridge/Doctrine/Tests/ArgumentResolver
Component/Messenger/Tests/Command Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ public function testResolveWithConversionFailedException()
173
173
$ repository ->expects ($ this ->once ())
174
174
->method ('find ' )
175
175
->with ('test ' )
176
- ->will ( $ this -> throwException ( new ConversionException () ));
176
+ ->willThrowException ( new ConversionException ());
177
177
178
178
$ manager ->expects ($ this ->once ())
179
179
->method ('getRepository ' )
@@ -381,7 +381,7 @@ public function testExpressionSyntaxErrorThrowsException()
381
381
382
382
$ language ->expects ($ this ->once ())
383
383
->method ('evaluate ' )
384
- ->will ( $ this -> throwException ( new SyntaxError ('syntax error message ' , 10 ) ));
384
+ ->willThrowException ( new SyntaxError ('syntax error message ' , 10 ));
385
385
386
386
$ this ->expectException (\LogicException::class);
387
387
$ this ->expectExceptionMessage ('syntax error message around position 10 ' );
Original file line number Diff line number Diff line change @@ -101,9 +101,7 @@ public function testThrowsExceptionOnTransportSetup()
101
101
$ serviceLocator = $ this ->createMock (ServiceLocator::class);
102
102
$ serviceLocator ->expects ($ this ->exactly (1 ))
103
103
->method ('get ' )
104
- ->will ($ this ->onConsecutiveCalls (
105
- $ amqpTransport
106
- ));
104
+ ->willReturn ($ amqpTransport );
107
105
$ serviceLocator
108
106
->method ('has ' )
109
107
->willReturn (true );
You can’t perform that action at this time.
0 commit comments