X7ROOT File Manager
Current Path:
/opt/cpanel/ea-wappspector/vendor/squizlabs/php_codesniffer/tests/Core
opt
/
cpanel
/
ea-wappspector
/
vendor
/
squizlabs
/
php_codesniffer
/
tests
/
Core
/
??
..
??
AbstractMethodUnitTest.php
(8.93 KB)
??
AllTests.php
(1.46 KB)
??
Autoloader
??
Config
??
ErrorSuppressionTest.php
(45.66 KB)
??
Files
??
Filters
??
Fixer
??
Generators
??
Ruleset
??
Runner
??
Sniffs
??
Standards
??
Tokenizers
??
Util
Editing: AllTests.php
<?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/HEAD/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\Tests\Core'.$class; $suite->addTestSuite($class); } return $suite; }//end suite() }//end class
Upload File
Create Folder