Skip to content
Snippets Groups Projects
Commit caeabd3f authored by Daniel Hürtgen's avatar Daniel Hürtgen
Browse files

BUGFIX: Fix php compatibility of StandardTest exceptional tests

parent 4deb4681
Branches
Tags
No related merge requests found
......@@ -44,21 +44,19 @@ class StandardTest extends \PHPUnit_Framework_TestCase
$this->assertSame($ruleSetXmlPath, $standard->getRuleSetXmlPath(), 'getRuleSetXmlPath');
}
/**
* @expectedException \Higidi\ComposerPhpCSStandardsPlugin\PHPCodeSniffer\Standard\Exception\StandardPathAccessDeniedException
*/
public function testIfStandardPathAccessDeniedExceptionIsThrown()
{
$this->expectException(
'Higidi\ComposerPhpCSStandardsPlugin\PHPCodeSniffer\Standard\Exception\StandardPathAccessDeniedException'
);
new Standard('foo');
}
/**
* @expectedException \Higidi\ComposerPhpCSStandardsPlugin\PHPCodeSniffer\Standard\Exception\InvalidStandardException
*/
public function testIfInvalidStandardExceptionIsThrown()
{
$this->expectException(
'Higidi\ComposerPhpCSStandardsPlugin\PHPCodeSniffer\Standard\Exception\InvalidStandardException'
);
$path = implode(
DIRECTORY_SEPARATOR,
array(__DIR__, '..', '..', '..', 'Fixtures', 'Standards', 'InvalidStandard')
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment