예제 #1
0
파일: std.php 프로젝트: xihewang/atoum
 public function __construct(atoum\cli $cli = null, atoum\adapter $adapter = null)
 {
     parent::__construct($adapter);
     $this->setCli($cli);
 }
예제 #2
0
파일: file.php 프로젝트: ronan-gloo/atoum
 public function __construct($filename = null, atoum\adapter $adapter = null)
 {
     parent::__construct($adapter);
     $this->setFilename($filename ?: self::defaultFileName);
 }
예제 #3
0
파일: mail.php 프로젝트: eroluysal/atoum
 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());
 }
예제 #4
0
파일: script.php 프로젝트: eroluysal/atoum
 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));
 }
예제 #5
0
 public function __construct(atoum\adapter $adapter = null)
 {
     parent::__construct($adapter);
     $this->setMethod();
 }
예제 #6
0
파일: file.php 프로젝트: xihewang/atoum
 public function reset()
 {
     $this->closeFile();
     return parent::reset();
 }