コード例 #1
0
ファイル: MaharaExtension.php プロジェクト: rboyatt/mahara
 /**
  * We print the site info + driver used and OS.
  *
  * At this point behat_hooks::before_suite() already
  * ran, so we have $CFG and family.
  *
  * @param SuiteEvent $event
  * @return void
  */
 public function beforeSuite(SuiteEvent $event)
 {
     global $CFG;
     require_once $CFG->docroot . '/testing/frameworks/behat/classes/util.php';
     // Calling all directly from here as we avoid more behat framework extensions.
     $runinfo = \BehatTestingUtil::get_site_info();
     $runinfo .= 'Server OS "' . PHP_OS . '"' . ', Browser: "firefox"' . PHP_EOL;
     $runinfo .= 'Started at ' . date('d-m-Y, H:i', time());
     $this->writeln($runinfo);
 }