Files
whoops/tests/Whoops/Handler/CallbackHandlerTest.php
T
Graham Campbell e82fa73c0e Fixed tests
2020-10-09 23:44:52 +01:00

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']);
}
}
}