PHP Класс SensioLabs\DeprecationDetector\Tests\Console\Command\CheckCommand\CheckCommandTest

Наследование: extends PHPUnit_Framework_TestCase
Показать файл Открыть проект

Открытые методы

Метод Описание
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 ( )

Приватные методы

Метод Описание
executeCommand ( string $sourcePath, string $rulesetPath, array $options = [] ) Helper method for simplified executing of CheckCommand.

Описание методов

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

returns invalid sourcePath and rulesetPath pairs, together with the argument, that should be mentioned in the exception message.
public invalidPathsProvider ( ) : array
Результат array

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

public setUp ( )

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

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

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

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

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