/var/www/vhosts/nabawater/vendor/codeception/base/src/Codeception/Subscriber
NameSizeModeActions
Shared/-0775rm
AutoRebuild.php22150664editdlrm
BeforeAfterTest.php15430664editdlrm
Bootstrap.php8690664editdlrm
Console.php200580664editdlrm
Dependencies.php12400664editdlrm
ErrorHandler.php47000664editdlrm
ExtensionLoader.php40490664editdlrm
FailFast.php4810664editdlrm
GracefulTermination.php15630664editdlrm
Module.php24120664editdlrm
PrepareTest.php11010664editdlrm
README.md2870664editdlrm
Edit: /var/www/vhosts/nabawater/vendor/codeception/base/src/Codeception/Subscriber/AutoRebuild.php (2215B)
'updateActor' ]; public function updateActor(SuiteEvent $e) { $settings = $e->getSettings(); if (!$settings['actor']) { codecept_debug('actor is empty'); return; // no actor } $modules = $e->getSuite()->getModules(); $actorActionsFile = Configuration::supportDir() . '_generated' . DIRECTORY_SEPARATOR . $settings['actor'] . 'Actions.php'; if (!file_exists($actorActionsFile)) { codecept_debug("Generating {$settings['actor']}Actions..."); $this->generateActorActions($actorActionsFile, $settings); return; } // load actor class to see hash $handle = @fopen($actorActionsFile, "r"); if ($handle and is_writable($actorActionsFile)) { $line = @fgets($handle); if (preg_match('~\[STAMP\] ([a-f0-9]*)~', $line, $matches)) { $hash = $matches[1]; $currentHash = Actions::genHash($modules, $settings); // regenerate actor class when hashes do not match if ($hash != $currentHash) { codecept_debug("Rebuilding {$settings['actor']}..."); @fclose($handle); $this->generateActorActions($actorActionsFile, $settings); return; } } @fclose($handle); } } protected function generateActorActions($actorActionsFile, $settings) { if (!file_exists(Configuration::supportDir() . '_generated')) { @mkdir(Configuration::supportDir() . '_generated'); } $actionsGenerator = new Actions($settings); $generated = $actionsGenerator->produce(); @file_put_contents($actorActionsFile, $generated); } }