Skip to content

Commit 889bc51

Browse files
Mitigate PHPUnit deprecations
1 parent 3c7a50b commit 889bc51

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/ArgumentResolver/EntityValueResolverTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ public function testResolveWithConversionFailedException()
173173
$repository->expects($this->once())
174174
->method('find')
175175
->with('test')
176-
->will($this->throwException(new ConversionException()));
176+
->willThrowException(new ConversionException());
177177

178178
$manager->expects($this->once())
179179
->method('getRepository')
@@ -381,7 +381,7 @@ public function testExpressionSyntaxErrorThrowsException()
381381

382382
$language->expects($this->once())
383383
->method('evaluate')
384-
->will($this->throwException(new SyntaxError('syntax error message', 10)));
384+
->willThrowException(new SyntaxError('syntax error message', 10));
385385

386386
$this->expectException(\LogicException::class);
387387
$this->expectExceptionMessage('syntax error message around position 10');

0 commit comments

Comments
 (0)