Exemplo n.º 1
0
 public function __construct(atoum\cli $cli = null, atoum\adapter $adapter = null)
 {
     parent::__construct($adapter);
     $this->setCli($cli);
 }
Exemplo n.º 2
0
 public function __construct($filename = null, atoum\adapter $adapter = null)
 {
     parent::__construct($adapter);
     $this->setFilename($filename ?: self::defaultFileName);
 }
Exemplo n.º 3
0
 public function __construct(atoum\mailer $mailer = null, atoum\locale $locale = null, atoum\adapter $adapter = null)
 {
     parent::__construct($adapter);
     $this->setMailer($mailer ?: new atoum\mailers\mail())->setLocale($locale ?: new atoum\locale());
 }
Exemplo n.º 4
0
 protected static function writeLabelWithWriter($label, $value, $level, writer $writer)
 {
     return $writer->write(($level <= 0 ? '' : str_repeat(self::padding, $level)) . (preg_match('/^ +$/', $label) ? $label : rtrim($label)) . ': ' . trim($value));
 }
Exemplo n.º 5
0
 public function __construct(atoum\adapter $adapter = null)
 {
     parent::__construct($adapter);
     $this->setMethod();
 }
Exemplo n.º 6
0
 public function reset()
 {
     $this->closeFile();
     return parent::reset();
 }