for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Steevanb\PhpBacktrace\Tests\DebugBacktraceHtml;
use PHPUnit\Framework\TestCase;
class DumpTest extends TestCase
{
protected static function assertDump($dump)
static::assertInternalType('string', $dump);
static::assertInternalType('int', strpos($dump, '<div class="steevanb-backtrace-container">'));
}
public function testDump()
ob_start();
\DebugBacktraceHtml::dump();
$dump = ob_get_contents();
static::assertDump($dump);
public function testOffset1()
\DebugBacktraceHtml::dump(1);
public function testLimit2()
\DebugBacktraceHtml::dump(0, 2);