Skip to content

Commit 742ce2b

Browse files
Merge branch '4.1' into 4.2
* 4.1: [Twig] Replace for-loops with blocks for attributes fixed CS [Tests] Change to willThrowException [Console] fix PHPDoc in Command Update FileLoaderLoadException.php Fix wrong calls to clearstatcache Add Vietnamese translation for validators Allow running PHPUnit with "xdebug.scream" ON [VarDumper] Add descriptors tests [Yaml] detect circular references [DI] fix reporting bindings on overriden services as unused [Routing] minor fix or previous PR
2 parents afba76d + 968fe68 commit 742ce2b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Tests/DataCollector/MessengerDataCollectorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function testHandleWithException()
8080
$message = new DummyMessage('dummy message');
8181

8282
$bus = $this->getMockBuilder(MessageBusInterface::class)->getMock();
83-
$bus->method('dispatch')->with($message)->will($this->throwException(new \RuntimeException('foo')));
83+
$bus->method('dispatch')->with($message)->willThrowException(new \RuntimeException('foo'));
8484
$bus = new TraceableMessageBus($bus);
8585

8686
$collector = new MessengerDataCollector();

Tests/TraceableMessageBusTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function testItTracesExceptions()
7070
$message = new DummyMessage('Hello');
7171

7272
$bus = $this->getMockBuilder(MessageBusInterface::class)->getMock();
73-
$bus->expects($this->once())->method('dispatch')->with($message)->will($this->throwException($exception = new \RuntimeException('Meh.')));
73+
$bus->expects($this->once())->method('dispatch')->with($message)->willThrowException($exception = new \RuntimeException('Meh.'));
7474

7575
$traceableBus = new TraceableMessageBus($bus);
7676

0 commit comments

Comments
 (0)