~ubuntu-branches/ubuntu/utopic/php-codesniffer/utopic-proposed

« back to all changes in this revision

Viewing changes to PHP_CodeSniffer-1.3.4/tests/Core/AllTests.php

  • Committer: Package Import Robot
  • Author(s): Thomas Goirand
  • Date: 2012-05-31 16:37:24 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20120531163724-u6aiaubu8ks5dh5z
Tags: 1.3.4-0.1
* Non-maintainer upload.
* New upstream release (Closes: #599617, #634825).
* Swtiched debian/copyright to format 1.0 (rewrite was needed anyway, as the
upstream license changed).
* Switched package to pkg-php-tools and debhelper 8 sequencer.
* Now running unit tests at build time (so depends on phpunit (>= 3.6)).
* Section is now PHP.
* Added missing Build-Depends-Indep: php-pear.
* Added missing ${misc:Depends}.
* Added Vcs fields.
* Added homepage field.
* Reviewed short and long description.
* Added dependency on php-timer.
* Standards-Version: is now 3.9.3 (lots of changes, see above...).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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-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
 
14
 */
 
15
 
 
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';
 
30
 
 
31
if (is_file(dirname(__FILE__).'/../../CodeSniffer.php') === true) {
 
32
    // We are not installed.
 
33
    include_once dirname(__FILE__).'/../../CodeSniffer.php';
 
34
} else {
 
35
    include_once 'PHP/CodeSniffer.php';
 
36
}
 
37
 
 
38
/**
 
39
 * A test class for testing the core.
 
40
 *
 
41
 * Do not run this file directly. Run the AllSniffs.php file in the root
 
42
 * testing directory of PHP_CodeSniffer.
 
43
 *
 
44
 * @category  PHP
 
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
 
52
 */
 
53
class PHP_CodeSniffer_Core_AllTests
 
54
{
 
55
 
 
56
 
 
57
    /**
 
58
     * Prepare the test runner.
 
59
     *
 
60
     * @return void
 
61
     */
 
62
    public static function main()
 
63
    {
 
64
        PHPUnit2_TextUI_TestRunner::run(self::suite());
 
65
 
 
66
    }//end main()
 
67
 
 
68
 
 
69
    /**
 
70
     * Add all core unit tests into a test suite.
 
71
     *
 
72
     * @return PHPUnit_Framework_TestSuite
 
73
     */
 
74
    public static function suite()
 
75
    {
 
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');
 
91
        return $suite;
 
92
 
 
93
    }//end suite()
 
94
 
 
95
 
 
96
}//end class
 
97
 
 
98
?>