diff --git a/Tests/ArgumentResolver/EntityValueResolverTest.php b/Tests/ArgumentResolver/EntityValueResolverTest.php index 6ae01a1c..471ab56a 100644 --- a/Tests/ArgumentResolver/EntityValueResolverTest.php +++ b/Tests/ArgumentResolver/EntityValueResolverTest.php @@ -173,7 +173,7 @@ public function testResolveWithConversionFailedException() $repository->expects($this->once()) ->method('find') ->with('test') - ->will($this->throwException(new ConversionException())); + ->willThrowException(new ConversionException()); $manager->expects($this->once()) ->method('getRepository') @@ -381,7 +381,7 @@ public function testExpressionSyntaxErrorThrowsException() $language->expects($this->once()) ->method('evaluate') - ->will($this->throwException(new SyntaxError('syntax error message', 10))); + ->willThrowException(new SyntaxError('syntax error message', 10)); $this->expectException(\LogicException::class); $this->expectExceptionMessage('syntax error message around position 10');