コード例 #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
ファイル: http.php プロジェクト: andrewolobo/mpTracker
 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();
 }