Ejemplo n.º 1
0
 /**
  * @codeCoverageIgnore
  * @param array $argv
  */
 protected function handleArguments(array $argv)
 {
     $this->longOptions['test-colors'] = null;
     $this->longOptions['color-scheme='] = null;
     $this->longOptions['list-color-schemes'] = null;
     $this->longOptions['ci'] = null;
     parent::handleArguments($argv);
     foreach ($this->options[0] as $option) {
         switch ($option[0]) {
             case '--test-colors':
                 $testColors = new TestColors();
                 echo $testColors->renderAll();
                 exit(PHPUnit_TextUI_TestRunner::SUCCESS_EXIT);
             case '--color-scheme':
                 $this->colorScheme = $option[1];
                 break;
             case '--list-color-schemes':
                 echo "Color Schemes:\n  default\n\n";
                 exit(PHPUnit_TextUI_TestRunner::SUCCESS_EXIT);
             case '--ci':
                 $this->ci = true;
                 break;
         }
     }
 }
Ejemplo n.º 2
0
 public function testEndsInNewLine()
 {
     $testColors = new TestColors();
     $this->assertString($testColors->renderAll())->endsWith("\n");
 }