mirror of
https://github.com/filp/whoops.git
synced 2026-09-19 06:06:19 +00:00
20 lines
463 B
PHP
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']);
|
|
}
|
|
}
|
|
}
|