Fixed PHPUnit plugin (for empty tests)
This commit is contained in:
parent
8d82e41666
commit
c97d5935b9
2 changed files with 6 additions and 18 deletions
|
|
@ -36,13 +36,4 @@ class PhpUnitResultTest extends \PHPUnit_Framework_TestCase
|
|||
$this->assertEquals(PhpUnitResult::SEVERITY_SKIPPED, $output[11]['severity']);
|
||||
$this->assertContains('Skipped Test:', $output[11]['message']);
|
||||
}
|
||||
|
||||
public function testParseFailure()
|
||||
{
|
||||
$this->setExpectedException('\Exception', 'Failed to parse the JSON output');
|
||||
|
||||
$buildPath = '/path/to/build';
|
||||
$parser = new PhpUnitResult(ROOT_DIR . 'tests/PHPCensor/Plugin/SampleFiles/invalid_format.txt', $buildPath);
|
||||
$parser->parse();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue