%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 49.231.201.246 / Your IP : 216.73.216.149 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/water/vendor/codeception/codeception/src/Codeception/Step/ |
Upload File : |
<?php namespace Codeception\Step; use Codeception\Exception\ConditionalAssertionFailed; use Codeception\Lib\ModuleContainer; use Codeception\Util\Template; class ConditionalAssertion extends Assertion implements GeneratedStep { public function run(ModuleContainer $container = null) { try { parent::run($container); } catch (\PHPUnit\Framework\AssertionFailedError $e) { throw new ConditionalAssertionFailed($e->getMessage(), $e->getCode(), $e); } } public function getAction() { $action = 'can' . ucfirst($this->action); $action = preg_replace('/^canDont/', 'cant', $action); return $action; } public function getHumanizedAction() { return $this->humanize($this->action . ' ' . $this->getHumanizedArguments()); } public static function getTemplate(Template $template) { $action = $template->getVar('action'); if ((0 !== strpos($action, 'see')) && (0 !== strpos($action, 'dontSee'))) { return ''; } $conditionalDoc = "* [!] Conditional Assertion: Test won't be stopped on fail\n " . $template->getVar('doc'); $prefix = 'can'; if (strpos($action, 'dontSee') === 0) { $prefix = 'cant'; $action = str_replace('dont', '', $action); } return $template ->place('doc', $conditionalDoc) ->place('action', $prefix . ucfirst($action)) ->place('step', 'ConditionalAssertion'); } public function match($name) { return 0 === strpos($name, 'see') || 0 === strpos($name, 'dontSee'); } }