![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/vendor/codeception/codeception/src/Codeception/Lib/Actor/Shared/ |
<?php declare(strict_types=1); namespace Codeception\Lib\Actor\Shared; use Codeception\Scenario; trait Comment { abstract protected function getScenario(): Scenario; public function expectTo(string $prediction): self { return $this->comment('I expect to ' . $prediction); } public function expect(string $prediction): self { return $this->comment('I expect ' . $prediction); } public function amGoingTo(string $argumentation): self { return $this->comment('I am going to ' . $argumentation); } public function am(string $role): self { $role = trim($role); if (stripos('aeiou', (string)$role[0]) !== false) { return $this->comment('As an ' . $role); } return $this->comment('As a ' . $role); } public function lookForwardTo(string $achieveValue): self { return $this->comment('So that I ' . $achieveValue); } public function comment(string $description): self { $this->getScenario()->comment($description); return $this; } }