SensioLabs\DeprecationDetector\Tests\Console\Command\CheckCommand\CheckCommandTest::testCommandThrowsHelpfulExceptionWithInvalidPaths PHP Метод

testCommandThrowsHelpfulExceptionWithInvalidPaths() публичный Метод

public testCommandThrowsHelpfulExceptionWithInvalidPaths ( $sourcePath, $rulesetPath, $mentionedArgument )
$sourcePath
$rulesetPath
$mentionedArgument
    public function testCommandThrowsHelpfulExceptionWithInvalidPaths($sourcePath, $rulesetPath, $mentionedArgument)
    {
        $this->setExpectedException('InvalidArgumentException', sprintf('%s argument is invalid: "%s" is not a path.', $mentionedArgument, 'Rule set' === $mentionedArgument ? $rulesetPath : $sourcePath));
        $this->executeCommand($sourcePath, $rulesetPath);
    }