Subversion Repositories Applications.framework

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
5 aurelien 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,v 1.4 2007/07/23 01:47:54 squiz Exp $
14
 * @link      http://pear.php.net/package/PHP_CodeSniffer
15
 */
16
 
17
require_once 'IsCamelCapsTest.php';
18
 
19
/**
20
 * A test class for testing the core.
21
 *
22
 * Do not run this file directly. Run the AllSniffs.php file in the root
23
 * testing directory of PHP_CodeSniffer.
24
 *
25
 * @category  PHP
26
 * @package   PHP_CodeSniffer
27
 * @author    Greg Sherwood <gsherwood@squiz.net>
28
 * @author    Marc McIntyre <mmcintyre@squiz.net>
29
 * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600)
30
 * @license   http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence
31
 * @version   Release: 1.2.0RC1
32
 * @link      http://pear.php.net/package/PHP_CodeSniffer
33
 */
34
class PHP_CodeSniffer_Core_AllTests
35
{
36
 
37
 
38
    /**
39
     * Prepare the test runner.
40
     *
41
     * @return void
42
     */
43
    public static function main()
44
    {
45
        PHPUnit2_TextUI_TestRunner::run(self::suite());
46
 
47
    }//end main()
48
 
49
 
50
    /**
51
     * Add all core unit tests into a test suite.
52
     *
53
     * @return PHPUnit_Framework_TestSuite
54
     */
55
    public static function suite()
56
    {
57
        $suite = new PHPUnit_Framework_TestSuite('PHP CodeSniffer Core');
58
        $suite->addTestSuite('Core_IsCamelCapsTest');
59
        return $suite;
60
 
61
    }//end suite()
62
 
63
 
64
}//end class
65
 
66
?>