Skip to content

Commit

Permalink
minor #58191 Mitigate PHPUnit deprecations (6.4) (alexandre-daubois)
Browse files Browse the repository at this point in the history
This PR was merged into the 6.4 branch.

Discussion
----------

Mitigate PHPUnit deprecations (6.4)

| Q             | A
| ------------- | ---
| Branch?       | 6.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Issues        | -
| License       | MIT

Like #58190, but for sources added since 6.0.

Commits
-------

cfe67b62bd Mitigate PHPUnit deprecations
  • Loading branch information
derrabus committed Sep 8, 2024
2 parents 9fdd62c + 889bc51 commit b5c0a01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/ArgumentResolver/EntityValueResolverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down Expand Up @@ -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');
Expand Down

0 comments on commit b5c0a01

Please sign in to comment.