Пример #1
0
 public function __construct(colorizer $colorizer = null, prompt $prompt = null)
 {
     parent::__construct();
     $this->colorizer = $colorizer ?: new colorizer(34);
     $this->prompt = $prompt ?: new prompt('  ∅ ', new colorizer('1;37', 44));
     $this->events = array(test::void);
 }
Пример #2
0
 public function __construct(colorizer $colorizer = null, prompt $prompt = null)
 {
     parent::__construct();
     $this->colorizer = $colorizer ?: new colorizer(32);
     $this->prompt = $prompt ?: new prompt('  ✔ ', new colorizer('1;37', 42));
     $this->events = array(test::success);
 }
Пример #3
0
 public function __construct()
 {
     parent::__construct();
     $this->events = array(test::runStop, test::runtimeException);
 }
Пример #4
0
 public function __construct(prompt $prompt = null)
 {
     parent::__construct();
     $this->prompt = $prompt ?: new prompt('     Uncompleted:', new colorizer('1;37'));
     $this->events = array(test::uncompleted);
 }