mirror of
https://github.com/filp/whoops.git
synced 2026-10-08 04:55:54 +00:00
Fixed tests
This commit is contained in:
@@ -6,14 +6,15 @@ use Whoops\TestCase;
|
||||
|
||||
class CallbackHandlerTest extends TestCase
|
||||
{
|
||||
public function testSimplifiedBacktrace() {
|
||||
$handler = new CallbackHandler(function($exception, $inspector, $run) {
|
||||
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']);
|
||||
foreach ($backtrace as $frame) {
|
||||
$this->assertStringNotContains('call_user_func', $frame['function']);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user