コード例 #1
0
ファイル: Cept.php プロジェクト: janhenkgerritsen/Codeception
 public function __construct($name, $file)
 {
     $metadata = new Metadata();
     $metadata->setName($name);
     $metadata->setFilename($file);
     $this->setMetadata($metadata);
     $this->createScenario();
     $this->parser = new Parser($this->getScenario(), $this->getMetadata());
 }
コード例 #2
0
ファイル: Cest.php プロジェクト: janhenkgerritsen/Codeception
 public function __construct($testClass, $methodName, $fileName)
 {
     $metadata = new Metadata();
     $metadata->setName($methodName);
     $metadata->setFilename($fileName);
     $this->setMetadata($metadata);
     $this->testClassInstance = $testClass;
     $this->testMethod = $methodName;
     $this->createScenario();
     $this->parser = new Parser($this->getScenario(), $this->getMetadata());
 }