![]() 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/phpcsstandards/phpcsutils/PHPCSUtils/Exceptions/ |
<?php /** * PHPCSUtils, utility functions and classes for PHP_CodeSniffer sniff developers. * * @package PHPCSUtils * @copyright 2019-2020 PHPCSUtils Contributors * @license https://opensource.org/licenses/LGPL-3.0 LGPL3 * @link https://github.com/PHPCSStandards/PHPCSUtils */ namespace PHPCSUtils\Exceptions; use OutOfBoundsException; /** * Exception thrown when a delimiter comment can not be found in a test case file. * * @since 1.0.0 */ final class TestMarkerNotFound extends OutOfBoundsException { /** * Create a new "test marker not found" exception with a standardized text. * * @since 1.0.0 * * @param string $marker The delimiter comment. * @param string $file The file in which the delimiter was not found. * * @return \PHPCSUtils\Exceptions\TestMarkerNotFound */ public static function create($marker, $file) { return new self( \sprintf( 'Failed to find the test marker: %s in test case file %s', $marker, $file ) ); } }