コード例 #1
0
ファイル: SuiteManager.php プロジェクト: pfz/codeception
 public function addCept($file)
 {
     $name = $this->relativeName($file);
     $this->tests[$name] = $file;
     $cept = new TestCase\Cept($this->dispatcher, array('name' => $name, 'file' => $file, 'bootstrap' => $this->settings['bootstrap']));
     $cept->preload();
     $this->suite->addTest($cept, $cept->getScenario()->getGroups());
 }
コード例 #2
0
ファイル: Cest.php プロジェクト: pfz/codeception
 public function __construct($dispatcher, array $data = array(), $dataName = '')
 {
     parent::__construct($dispatcher, $data, $dataName);
     $this->testClassInstance = $data['instance'];
     $this->testMethod = $data['method'];
     $this->guy = $data['guy'];
 }
コード例 #3
0
ファイル: TestLoader.php プロジェクト: Eli-TW/Codeception
 public function addCept($file)
 {
     $name = $this->relativeName($file);
     $cept = new Cept();
     $cept->configName($name)->configFile($file)->initConfig();
     $this->tests[] = $cept;
 }
コード例 #4
0
ファイル: TestLoader.php プロジェクト: Marfuz/c4t_test
 public function addCept($file)
 {
     Parser::validate($file);
     $name = $this->relativeName($file);
     $cept = new Cept();
     $cept->configName($name)->configFile($file);
     $this->tests[] = $cept;
 }