本文整理匯總了PHP中PHPUnit_TextUI_Command::handleArguments方法的典型用法代碼示例。如果您正苦於以下問題:PHP PHPUnit_TextUI_Command::handleArguments方法的具體用法?PHP PHPUnit_TextUI_Command::handleArguments怎麽用?PHP PHPUnit_TextUI_Command::handleArguments使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類PHPUnit_TextUI_Command
的用法示例。
在下文中一共展示了PHPUnit_TextUI_Command::handleArguments方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: handleArguments
/**
* {@inheritdoc}
*
* @SuppressWarnings(PHPMD.StaticAccess)
*/
public function handleArguments(array $argv)
{
parent::handleArguments($argv);
if (Get::value('sugaredDebug', $this->arguments, false)) {
$this->logDebug('Parsed arguments', $this->arguments);
}
$this->addListeners();
}
示例2: handleArguments
/**
* {@inheritdoc}
*/
protected function handleArguments(array $argv)
{
parent::handleArguments($argv);
if (array_key_exists('testSuffixes', $this->arguments)) {
$fileSystem = new FileSystem();
$filePatterns = array();
foreach ($this->arguments['testSuffixes'] as $testSuffix) {
$filePatterns[] = preg_quote($testSuffix) . '$';
}
$this->testTargetRepository->setResources(array(empty($this->arguments['testFile']) ? $this->arguments['test'] : $this->arguments['testFile']));
$this->testTargetRepository->setFilePattern(implode('|', $filePatterns));
}
}
示例3: handleArguments
protected function handleArguments(array $argv)
{
parent::handleArguments($argv);
if (!isset($this->arguments['listeners'])) {
$this->arguments['listeners'] = array();
}
foreach ($this->options[0] as $option) {
switch ($option[0]) {
case '--debug-tests':
$this->arguments['listeners'][] = new MediaWikiPHPUnitTestListener('PHPUnitCommand');
break;
}
}
}
示例4: handleArguments
protected function handleArguments(array $argv)
{
parent::handleArguments($argv);
$verbose = isset($this->arguments['verbose']) ? true : false;
$this->arguments['printer'] = new ResultPrinter(null, $verbose, false, false);
}
示例5: handleArguments
/**
* Additionally ensures that the required argument "--dsn" is set
*
* @inheritdoc
* @param array $argv
*/
protected function handleArguments(array $argv)
{
parent::handleArguments($argv);
if (empty($this->arguments['dsn'])) {
PHPUnit_TextUI_TestRunner::showError('The parameter --dsn is required');
}
}