mirror of
https://github.com/filp/whoops.git
synced 2026-08-30 12:07:25 +00:00
Added tests
This commit is contained in:
@@ -103,6 +103,20 @@ class FrameTest extends TestCase
|
||||
$this->assertStringEqualsFile($data['file'], $frame->getFileContents());
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Whoops\Exception\Frame::getFileContents
|
||||
* @testWith ["[internal]"]
|
||||
* ["Unknown"]
|
||||
* @see https://github.com/filp/whoops/pull/599
|
||||
*/
|
||||
public function testGetFileContentsWhenFrameIsNotRelatedToSpecificFile($fakeFilename)
|
||||
{
|
||||
$data = array_merge($this->getFrameData(), ['file' => $fakeFilename]);
|
||||
$frame = $this->getFrameInstance($data);
|
||||
|
||||
$this->assertNull($frame->getFileContents());
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Whoops\Exception\Frame::getFileLines
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user