3
* A test class for testing the core.
8
* @package PHP_CodeSniffer
9
* @author Greg Sherwood <gsherwood@squiz.net>
10
* @author Marc McIntyre <mmcintyre@squiz.net>
11
* @copyright 2006-2011 Squiz Pty Ltd (ABN 77 084 670 600)
12
* @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence
13
* @link http://pear.php.net/package/PHP_CodeSniffer
16
require_once 'IsCamelCapsTest.php';
17
require_once 'ErrorSuppressionTest.php';
18
require_once 'File/GetMethodParametersTest.php';
19
require_once 'ReportingTest.php';
20
require_once 'Reports/CheckstyleTest.php';
21
require_once 'Reports/FullTest.php';
22
require_once 'Reports/SummaryTest.php';
23
require_once 'Reports/XmlTest.php';
24
require_once 'Reports/CsvTest.php';
25
require_once 'Reports/EmacsTest.php';
26
require_once 'Reports/SourceTest.php';
27
require_once 'Reports/SvnblameTest.php';
28
require_once 'Reports/GitblameTest.php';
29
require_once 'Reports/HgblameTest.php';
31
if (is_file(dirname(__FILE__).'/../../CodeSniffer.php') === true) {
32
// We are not installed.
33
include_once dirname(__FILE__).'/../../CodeSniffer.php';
35
include_once 'PHP/CodeSniffer.php';
39
* A test class for testing the core.
41
* Do not run this file directly. Run the AllSniffs.php file in the root
42
* testing directory of PHP_CodeSniffer.
45
* @package PHP_CodeSniffer
46
* @author Greg Sherwood <gsherwood@squiz.net>
47
* @author Marc McIntyre <mmcintyre@squiz.net>
48
* @copyright 2006-2011 Squiz Pty Ltd (ABN 77 084 670 600)
49
* @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence
50
* @version Release: 1.3.4
51
* @link http://pear.php.net/package/PHP_CodeSniffer
53
class PHP_CodeSniffer_Core_AllTests
58
* Prepare the test runner.
62
public static function main()
64
PHPUnit2_TextUI_TestRunner::run(self::suite());
70
* Add all core unit tests into a test suite.
72
* @return PHPUnit_Framework_TestSuite
74
public static function suite()
76
$suite = new PHPUnit_Framework_TestSuite('PHP CodeSniffer Core');
77
$suite->addTestSuite('Core_IsCamelCapsTest');
78
$suite->addTestSuite('Core_ErrorSuppressionTest');
79
$suite->addTestSuite('Core_File_GetMethodParametersTest');
80
$suite->addTestSuite('Core_ReportingTest');
81
$suite->addTestSuite('Core_Reports_CheckstyleTest');
82
$suite->addTestSuite('Core_Reports_FullTest');
83
$suite->addTestSuite('Core_Reports_SummaryTest');
84
$suite->addTestSuite('Core_Reports_XmlTest');
85
$suite->addTestSuite('Core_Reports_CsvTest');
86
$suite->addTestSuite('Core_Reports_EmacsTest');
87
$suite->addTestSuite('Core_Reports_SourceTest');
88
$suite->addTestSuite('Core_Reports_SvnblameTest');
89
$suite->addTestSuite('Core_Reports_GitblameTest');
90
$suite->addTestSuite('Core_Reports_HgblameTest');