mirror of
https://github.com/filp/whoops.git
synced 2026-08-26 12:57:44 +00:00
21 lines
475 B
PHP
21 lines
475 B
PHP
<?php
|
|
/**
|
|
* Whoops - php errors for cool kids
|
|
* @author Filipe Dobreira <http://github.com/filp>
|
|
*/
|
|
|
|
namespace Whoops\Exception;
|
|
|
|
use Whoops\TestCase;
|
|
|
|
class FormatterTest extends TestCase
|
|
{
|
|
public function testPlain()
|
|
{
|
|
$msg = 'Sample exception message foo';
|
|
$output = Formatter::formatExceptionPlain(new Inspector(new \Exception($msg)));
|
|
$this->assertContains($msg, $output);
|
|
$this->assertContains('Stacktrace', $output);
|
|
}
|
|
}
|