Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F6029236
AllTests.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
AllTests.php
View Options
<?php
/**
* A test class for testing the core.
*
* @author Greg Sherwood <gsherwood@squiz.net>
* @author Juliette Reinders Folmer <phpcs_nospam@adviesenzo.nl>
* @copyright 2006-2019 Squiz Pty Ltd (ABN 77 084 670 600)
* @license https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
*/
namespace
PHP_CodeSniffer\Tests\Core
;
use
PHP_CodeSniffer\Tests\FileList
;
use
PHPUnit\Framework\TestSuite
;
use
PHPUnit\TextUI\TestRunner
;
class
AllTests
{
/**
* Prepare the test runner.
*
* @return void
*/
public
static
function
main
()
{
TestRunner
::
run
(
self
::
suite
());
}
//end main()
/**
* Add all core unit tests into a test suite.
*
* @return \PHPUnit\Framework\TestSuite
*/
public
static
function
suite
()
{
$suite
=
new
TestSuite
(
'PHP CodeSniffer Core'
);
$testFileIterator
=
new
FileList
(
__DIR__
,
''
,
'`Test
\.
php$`Di'
);
foreach
(
$testFileIterator
->
fileIterator
as
$file
)
{
if
(
strpos
(
$file
,
'AbstractMethodUnitTest.php'
)
!==
false
)
{
continue
;
}
include_once
$file
;
$class
=
str_replace
(
__DIR__
,
''
,
$file
);
$class
=
str_replace
(
'.php'
,
''
,
$class
);
$class
=
str_replace
(
'/'
,
'
\\
'
,
$class
);
$class
=
'PHP_CodeSniffer
\T
ests
\C
ore'
.
$class
;
$suite
->
addTestSuite
(
$class
);
}
return
$suite
;
}
//end suite()
}
//end class
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Oct 4 2026, 17:28 (7 w, 6 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
32/fc/a014df1a1fb79817f9b51a05af14
Default Alt Text
AllTests.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment