Formatter: a simple test for plain

This commit is contained in:
Denis Sokolov
2014-05-22 00:25:59 +09:00
parent c876556f9e
commit 04a3f9b8c1
+19
View File
@@ -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);
}
}