mirror of
https://github.com/filp/whoops.git
synced 2026-10-07 20:47:23 +00:00
21 lines
475 B
PHP
21 lines
475 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->assertStringNotContains('call_user_func', $frame['function']);
|
|
}
|
|
}
|
|
}
|