public function testPrintHtml()
 {
     $e = new \Exception('err', 32, new \Exception('inner', 1));
     $betterEx = new Exception($e);
     $out = BetterError::printHtml($betterEx);
     $this->assertTrue(is_string($out));
 }
Example #2
0
<?php

$autoloader = (require __DIR__ . '/../vendor/autoload.php');
$autoloader->add('BetterErrorTests\\', __DIR__ . '/../src/BetterErrorTests');
\BetterError\BetterError::register();