Files
whoops/tests/Whoops/Handler/CallbackHandlerTest.php
T
2016-07-24 19:35:27 +02:00

20 lines
463 B
PHP

<?php
namespace Whoops\Handler;
use Whoops\TestCase;
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']);
}
}
}