Blame | Letzte Änderung | Log anzeigen | RSS feed
<?php/*** A test class for testing the core.** PHP version 5** @category PHP* @package PHP_CodeSniffer* @author Greg Sherwood <gsherwood@squiz.net>* @author Marc McIntyre <mmcintyre@squiz.net>* @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600)* @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence* @version CVS: $Id: AllTests.php 287720 2009-08-26 00:37:52Z squiz $* @link http://pear.php.net/package/PHP_CodeSniffer*/require_once 'IsCamelCapsTest.php';require_once 'ErrorSuppressionTest.php';if (is_file(dirname(__FILE__).'/../../CodeSniffer.php') === true) {// We are not installed.include_once dirname(__FILE__).'/../../CodeSniffer.php';} else {include_once 'PHP/CodeSniffer.php';}/*** A test class for testing the core.** Do not run this file directly. Run the AllSniffs.php file in the root* testing directory of PHP_CodeSniffer.** @category PHP* @package PHP_CodeSniffer* @author Greg Sherwood <gsherwood@squiz.net>* @author Marc McIntyre <mmcintyre@squiz.net>* @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600)* @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence* @version Release: 1.2.1* @link http://pear.php.net/package/PHP_CodeSniffer*/class PHP_CodeSniffer_Core_AllTests{/*** Prepare the test runner.** @return void*/public static function main(){PHPUnit2_TextUI_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 PHPUnit_Framework_TestSuite('PHP CodeSniffer Core');$suite->addTestSuite('Core_IsCamelCapsTest');$suite->addTestSuite('Core_ErrorSuppressionTest');return $suite;}//end suite()}//end class?>