Skip to content

Commit 442ca77

Browse files
Merge branch '2.7' into 2.8
* 2.7: Further refactorings to PHPUnit namespaces resolve parameters in definition classes
2 parents 326ff32 + ae95af2 commit 442ca77

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Tests/Config/FileLocatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function testLocate()
3030
$kernel
3131
->expects($this->never())
3232
->method('locateResource');
33-
$this->setExpectedException('LogicException');
33+
$this->{method_exists($this, $_ = 'expectException') ? $_ : 'setExpectedException'}('LogicException');
3434
$locator->locate('/some/path');
3535
}
3636

Tests/DependencyInjection/ContainerAwareHttpKernelTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ public function testHandleRestoresThePreviousRequestOnException($type)
104104
try {
105105
$kernel->handle($request, $type);
106106
$this->fail('->handle() suppresses the controller exception');
107+
} catch (\PHPUnit\Framework\Exception $e) {
108+
throw $e;
107109
} catch (\PHPUnit_Framework_Exception $e) {
108110
throw $e;
109111
} catch (\Exception $e) {

0 commit comments

Comments
 (0)