Skip to content

Commit 2568d0a

Browse files
committed
Merge branch '6.4' into 7.1
* 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
2 parents 5c31b27 + b5c0a01 commit 2568d0a

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Tests/ArgumentResolver/EntityValueResolverTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ public function testResolveWithConversionFailedException()
168168
$repository->expects($this->once())
169169
->method('find')
170170
->with('test')
171-
->will($this->throwException(new ConversionException()));
171+
->willThrowException(new ConversionException());
172172

173173
$manager->expects($this->once())
174174
->method('getRepository')
@@ -453,7 +453,7 @@ public function testExpressionSyntaxErrorThrowsException()
453453

454454
$language->expects($this->once())
455455
->method('evaluate')
456-
->will($this->throwException(new SyntaxError('syntax error message', 10)));
456+
->willThrowException(new SyntaxError('syntax error message', 10));
457457

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

Tests/Messenger/DoctrineCloseConnectionMiddlewareTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function testInvalidEntityManagerThrowsException()
6363
$managerRegistry
6464
->method('getManager')
6565
->with('unknown_manager')
66-
->will($this->throwException(new \InvalidArgumentException()));
66+
->willThrowException(new \InvalidArgumentException());
6767

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

Tests/Messenger/DoctrinePingConnectionMiddlewareTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public function testInvalidEntityManagerThrowsException()
101101
$managerRegistry
102102
->method('getManager')
103103
->with('unknown_manager')
104-
->will($this->throwException(new \InvalidArgumentException()));
104+
->willThrowException(new \InvalidArgumentException());
105105

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

Tests/Messenger/DoctrineTransactionMiddlewareTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function testInvalidEntityManagerThrowsException()
7575
$managerRegistry
7676
->method('getManager')
7777
->with('unknown_manager')
78-
->will($this->throwException(new \InvalidArgumentException()));
78+
->willThrowException(new \InvalidArgumentException());
7979

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

0 commit comments

Comments
 (0)