Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1431903
TestFileNotFound.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
TestFileNotFound.php
View Options
<?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
BadMethodCallException
;
/**
* Exception thrown when the UtilityMethodTestCase::getTargetToken() method is run without a
* tokenized test case file being available.
*
* @since 1.0.0
*/
final
class
TestFileNotFound
extends
BadMethodCallException
{
/**
* Create a new "test file not found" exception with a standardized text.
*
* @since 1.0.0
*
* @param string $message The Exception message to throw.
* @param int $code The Exception code.
* @param \Throwable|null $previous The previous exception used for the exception chaining.
*
* @return void
*/
public
function
__construct
(
$message
=
''
,
$code
=
0
,
$previous
=
null
)
{
if
(
$message
===
''
)
{
$message
=
\sprintf
(
'Failed to find a tokenized test case file.%sMake sure the UtilityMethodTestCase::setUpTestFile()'
.
' method has run before calling UtilityMethodTestCase::getTargetToken()'
,
\PHP_EOL
);
}
parent
::
__construct
(
$message
,
$code
,
$previous
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, May 16, 21:12 (1 d, 14 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
57/1d/c9daba8d86eb2b7f052c5f736237
Default Alt Text
TestFileNotFound.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment