Bolt\Tests\Twig\UtilsHandlerTest::testPrintBacktraceNoSafeDebugOn PHP Метод

testPrintBacktraceNoSafeDebugOn() публичный Метод

    public function testPrintBacktraceNoSafeDebugOn()
    {
        $app = $this->getApp();
        $this->stubVarDumper($app);
        $app['debug'] = true;
        $app['config']->set('general/debug_show_loggedoff', true);
        $handler = new UtilsHandler($app);
        $result = $handler->printBacktrace(5, false);
        $this->assertCount(5, $result);
        $this->assertArrayHasKey('file', $result[0]);
        $this->assertArrayHasKey('line', $result[0]);
        $this->assertArrayHasKey('function', $result[0]);
        $this->assertArrayHasKey('class', $result[0]);
    }