PHP Class SensioLabs\DeprecationDetector\Tests\Console\Command\CheckCommand\CheckCommandTest

Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: sensiolabs-de/deprecation-detector

Public Methods

Method Description
invalidPathsProvider ( ) : array returns invalid sourcePath and rulesetPath pairs, together with the argument, that should be mentioned in the exception message.
setUp ( )
testCommandThrowsHelpfulExceptionWithInvalidPaths ( $sourcePath, $rulesetPath, $mentionedArgument )
testCommandWithExampleCodeWorks ( )
testCommandWithFailOption ( )
testCommandWithFilterMethodOption ( )

Private Methods

Method Description
executeCommand ( string $sourcePath, string $rulesetPath, array $options = [] ) Helper method for simplified executing of CheckCommand.

Method Details

invalidPathsProvider() public method

returns invalid sourcePath and rulesetPath pairs, together with the argument, that should be mentioned in the exception message.
public invalidPathsProvider ( ) : array
return array

setUp() public method

public setUp ( )

testCommandThrowsHelpfulExceptionWithInvalidPaths() public method

public testCommandThrowsHelpfulExceptionWithInvalidPaths ( $sourcePath, $rulesetPath, $mentionedArgument )
$sourcePath
$rulesetPath
$mentionedArgument

testCommandWithExampleCodeWorks() public method

testCommandWithFailOption() public method

testCommandWithFilterMethodOption() public method