This commit is contained in:
Nicolas Grekas 2015-04-24 18:44:40 +02:00
parent 62808e4078
commit 0cbe1e011d

View File

@ -71,8 +71,8 @@ class HttpKernelTest extends \PHPUnit_Framework_TestCase
try {
$kernel->handle(new Request(), HttpKernelInterface::MASTER_REQUEST, true);
$this->fail('LogicException expected');
} catch (\LogicException $e) {
$this->assertSame($exception, $e->getPrevious());
} catch (\RuntimeException $e) {
$this->assertSame($exception, $e);
}
}