mirror of
https://github.com/filp/whoops.git
synced 2026-08-27 01:07:44 +00:00
Formatter: a simple test for plain
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
<?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 \Foo\Bar\Quux\Exception($msg)));
|
||||
$this->assertContains($msg, $output);
|
||||
$this->assertContains('Stacktrace', $output);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user