本文整理汇总了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');
}
}