Files
whoops/tests/Whoops/Handler/CallbackHandlerTest.php
T
Markus Staab 8d15a7357e directly invoke callables instead of call_user_func.
eases debugging, because of simpler stacktraces.
2015-01-22 15:36:47 +01:00

21 lines
499 B
PHP

<?php
namespace Whoops\Handler;
use Whoops\TestCase;
use Whoops\Handler\CallbackHandler;
class CallbackHandlerTest extends TestCase
{
public function testSimplifiedBacktrace() {
$handler = new CallbackHandler(function($exception, $inspector, $run) {
return debug_backtrace();
});
$backtrace = $handler->handle();
foreach($backtrace as $frame) {
$this->assertNotContains('call_user_func', $frame['function']);
}
}
}