Fixed tests

This commit is contained in:
Graham Campbell
2020-10-09 23:44:52 +01:00
parent 3b66542bc9
commit e82fa73c0e
10 changed files with 95 additions and 36 deletions
+5 -4
View File
@@ -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']);
}
}
}