Skip to content

Commit

Permalink
Merge branch '6.4' into 7.1
Browse files Browse the repository at this point in the history
* 6.4:
  Mitigate PHPUnit deprecations
  [TwigBundle] Add support for resetting globals between HTTP requests
  Mitigate PHPUnit deprecations
  [Cache] Fix compatibility with Redis 6.1.0 pre-releases
  [Validator] Add Catalan and Spanish translation for `Week` constraint
  Don't use is_resource() on non-streams
  [Ldap] Fix extension deprecation
  • Loading branch information
derrabus committed Sep 8, 2024
2 parents 5c31b27 + b5c0a01 commit 2568d0a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Tests/ArgumentResolver/EntityValueResolverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,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 @@ -453,7 +453,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
2 changes: 1 addition & 1 deletion Tests/Messenger/DoctrineCloseConnectionMiddlewareTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function testInvalidEntityManagerThrowsException()
$managerRegistry
->method('getManager')
->with('unknown_manager')
->will($this->throwException(new \InvalidArgumentException()));
->willThrowException(new \InvalidArgumentException());

$middleware = new DoctrineCloseConnectionMiddleware($managerRegistry, 'unknown_manager');

Expand Down
2 changes: 1 addition & 1 deletion Tests/Messenger/DoctrinePingConnectionMiddlewareTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public function testInvalidEntityManagerThrowsException()
$managerRegistry
->method('getManager')
->with('unknown_manager')
->will($this->throwException(new \InvalidArgumentException()));
->willThrowException(new \InvalidArgumentException());

$middleware = new DoctrinePingConnectionMiddleware($managerRegistry, 'unknown_manager');

Expand Down
2 changes: 1 addition & 1 deletion Tests/Messenger/DoctrineTransactionMiddlewareTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function testInvalidEntityManagerThrowsException()
$managerRegistry
->method('getManager')
->with('unknown_manager')
->will($this->throwException(new \InvalidArgumentException()));
->willThrowException(new \InvalidArgumentException());

$middleware = new DoctrineTransactionMiddleware($managerRegistry, 'unknown_manager');

Expand Down

0 comments on commit 2568d0a

Please sign in to comment.