Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<?php
2
/**
3
 * A test class for testing the core.
4
 *
5
 * PHP version 5
6
 *
7
 * @category  PHP
8
 * @package   PHP_CodeSniffer
9
 * @author    Greg Sherwood <gsherwood@squiz.net>
10
 * @author    Marc McIntyre <mmcintyre@squiz.net>
11
 * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600)
12
 * @license   http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence
13
 * @version   CVS: $Id: AllTests.php 287720 2009-08-26 00:37:52Z squiz $
14
 * @link      http://pear.php.net/package/PHP_CodeSniffer
15
 */
16
 
17
require_once 'IsCamelCapsTest.php';
18
require_once 'ErrorSuppressionTest.php';
19
 
20
if (is_file(dirname(__FILE__).'/../../CodeSniffer.php') === true) {
21
    // We are not installed.
22
    include_once dirname(__FILE__).'/../../CodeSniffer.php';
23
} else {
24
    include_once 'PHP/CodeSniffer.php';
25
}
26
 
27
/**
28
 * A test class for testing the core.
29
 *
30
 * Do not run this file directly. Run the AllSniffs.php file in the root
31
 * testing directory of PHP_CodeSniffer.
32
 *
33
 * @category  PHP
34
 * @package   PHP_CodeSniffer
35
 * @author    Greg Sherwood <gsherwood@squiz.net>
36
 * @author    Marc McIntyre <mmcintyre@squiz.net>
37
 * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600)
38
 * @license   http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence
39
 * @version   Release: 1.2.1
40
 * @link      http://pear.php.net/package/PHP_CodeSniffer
41
 */
42
class PHP_CodeSniffer_Core_AllTests
43
{
44
 
45
 
46
    /**
47
     * Prepare the test runner.
48
     *
49
     * @return void
50
     */
51
    public static function main()
52
    {
53
        PHPUnit2_TextUI_TestRunner::run(self::suite());
54
 
55
    }//end main()
56
 
57
 
58
    /**
59
     * Add all core unit tests into a test suite.
60
     *
61
     * @return PHPUnit_Framework_TestSuite
62
     */
63
    public static function suite()
64
    {
65
        $suite = new PHPUnit_Framework_TestSuite('PHP CodeSniffer Core');
66
        $suite->addTestSuite('Core_IsCamelCapsTest');
67
        $suite->addTestSuite('Core_ErrorSuppressionTest');
68
        return $suite;
69
 
70
    }//end suite()
71
 
72
 
73
}//end class
74
 
75
?>