public function ExceptionHandlerTest::testHandleOutOfMemoryException in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/debug/Tests/ExceptionHandlerTest.php \Symfony\Component\Debug\Tests\ExceptionHandlerTest::testHandleOutOfMemoryException()
File
- vendor/
symfony/ debug/ Tests/ ExceptionHandlerTest.php, line 118
Class
Namespace
Symfony\Component\Debug\TestsCode
public function testHandleOutOfMemoryException() {
$exception = new OutOfMemoryException('foo', 0, E_ERROR, __FILE__, __LINE__);
$handler = $this
->getMock('Symfony\\Component\\Debug\\ExceptionHandler', array(
'sendPhpResponse',
));
$handler
->expects($this
->once())
->method('sendPhpResponse');
$that = $this;
$handler
->setHandler(function ($e) use ($that) {
$that
->fail('OutOfMemoryException should bypass the handler');
});
$handler
->handle($exception);
}