mirror of
https://github.com/filp/whoops.git
synced 2026-08-27 00:57:44 +00:00
8d15a7357e
eases debugging, because of simpler stacktraces.
21 lines
499 B
PHP
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']);
|
|
}
|
|
}
|
|
}
|