/var/www/vhosts/nabawater/vendor/codeception/base/src/Codeception/Test
NameSizeModeActions
Feature/-0775rm
Interfaces/-0775rm
Loader/-0775rm
Cept.php20980664editdlrm
Cest.php73140664editdlrm
Descriptor.php39380664editdlrm
Gherkin.php64080664editdlrm
Loader.php39340664editdlrm
Metadata.php50920664editdlrm
Test.php38510664editdlrm
Unit.php48420664editdlrm
Edit: /var/www/vhosts/nabawater/vendor/codeception/base/src/Codeception/Test/Cept.php (2098B)
setName($name); $metadata->setFilename($file); $this->setMetadata($metadata); $this->createScenario(); $this->parser = new Parser($this->getScenario(), $this->getMetadata()); } public function preload() { $this->getParser()->prepareToRun($this->getSourceCode()); } public function test() { $scenario = $this->getScenario(); $testFile = $this->getMetadata()->getFilename(); /** @noinspection PhpIncludeInspection */ try { require $testFile; } catch (\ParseError $e) { throw new TestParseException($testFile, $e->getMessage(), $e->getLine()); } } public function getSignature() { return $this->getMetadata()->getName() . 'Cept'; } public function toString() { return $this->getSignature() . ': ' . Message::ucfirst($this->getFeature()); } public function getSourceCode() { return file_get_contents($this->getFileName()); } public function getReportFields() { return [ 'name' => basename($this->getFileName(), 'Cept.php'), 'file' => $this->getFileName(), 'feature' => $this->getFeature() ]; } /** * @return Parser */ protected function getParser() { return $this->parser; } public function fetchDependencies() { return $this->getMetadata()->getDependencies(); } }