Esempio n. 1
0
 /**
  * Prints warning about unresolved dependencies
  *
  * @param string $class_names Unresolved classes and extensions names
  */
 public final function __construct($class_names)
 {
     $warning = new CliColor('red', ['bold']);
     $str = "WARNING!\nFound unresolved dependencies:\n\n";
     echo $warning->setString($str);
     $dependencies = new CliColor('white', ['bold']);
     echo $dependencies->setString("{$class_names}\n");
     $warning->setStyle(['default']);
     $str = "Please, install proper extensions for test completion.\n";
     echo $warning->setString($str);
 }
 /**
  * @covers          Veles\Tools\CliColor::setStyle
  * @expectedException \Exception
  */
 public function testSetStyleException()
 {
     $style = uniqid();
     $this->object->setStyle([$style]);
 }