File manager - Edit - /usr/local/prospamfilter/vendor/codeception/codeception/src/Codeception/Test/Feature/IgnoreIfMetadataBlocked.php
Back
<?php namespace Codeception\Test\Feature; use Codeception\Test\Metadata; trait IgnoreIfMetadataBlocked { /** * @return Metadata */ abstract protected function getMetadata(); abstract protected function ignore($ignored); /** * @return \PHPUnit_Framework_TestResult */ abstract protected function getTestResultObject(); protected function ignoreIfMetadataBlockedStart() { if (!$this->getMetadata()->isBlocked()) { return; } $this->ignore(true); if ($this->getMetadata()->getSkip() !== null) { $this->getTestResultObject()->addFailure($this, new \PHPUnit_Framework_SkippedTestError((string)$this->getMetadata()->getSkip()), 0); return; } if ($this->getMetadata()->getIncomplete() !== null) { $this->getTestResultObject()->addFailure($this, new \PHPUnit_Framework_IncompleteTestError((string)$this->getMetadata()->getIncomplete()), 0); return; } } }
| ver. 1.4 |
Github
|
.
| PHP 8.2.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings