cvs: pear /PHP_CodeSniffer/tests AllTests.php

From: Date: Fri, 06 Oct 2006 01:05:52 +0000
Subject: cvs: pear /PHP_CodeSniffer/tests AllTests.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-42426@lists.php.net to get a copy of this message
squiz Fri Oct 6 01:05:52 2006 UTC Added files: /pear/PHP_CodeSniffer/tests AllTests.php Log: Script to run all PHP_CodeSniffer unit tests, including all sniff tests. Usage: phpunit AllTests.php http://cvs.php.net/viewvc.cgi/pear/PHP_CodeSniffer/tests/AllTests.php?view=markup&rev=1.1 Index: pear/PHP_CodeSniffer/tests/AllTests.php +++ pear/PHP_CodeSniffer/tests/AllTests.php <?php /** * +------------------------------------------------------------------------+ * | BSD Licence | * +------------------------------------------------------------------------+ * | This software is available to you under the BSD license, | * | available in the LICENSE file accompanying this software. | * | You may obtain a copy of the License at | * | | * | http://matrix.squiz.net/developer/tools/php_cs/licence | * | | * | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | * | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | * | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | * | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | * | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | * | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | * | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | * | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | * | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | * | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | * | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | * +------------------------------------------------------------------------+ * | Copyright (c), 2006 Squiz Pty Ltd (ABN 77 084 670 600). | * | All rights reserved. | * +------------------------------------------------------------------------+ * * @package PHP_CodeSniffer * @category Testing * @author Squiz Pty Ltd */ require_once 'PHPUnit2/Framework/TestSuite.php'; require_once 'PHPUnit2/TextUI/TestRunner.php'; require_once 'CodeSniffer/Core/AllTests.php'; require_once 'CodeSniffer/Standards/AllSniffs.php'; /** * A test class for running all PHP_CodeSniffer unit tests. * * Usage: phpunit AllTests.php * * @package PHP_CodeSniffer * @category Testing * @author Squiz Pty Ltd */ class AllTests { /** * Prepare the test runner. * * @return void */ public static function main() { PHPUnit2_TextUI_TestRunner::run(self::suite()); }//end main() /** * Add all PHP_CodeSniffer test suites into a single test suite. * * @return PHPUnit2_Framework_TestSuite */ public static function suite() { $suite = new PHPUnit2_Framework_TestSuite('PHP CodeSniffer'); $suite->addTest(Core_AllTests::suite()); $suite->addTest(AllSniffs::suite()); return $suite; }//end suite() }//end class ?>

« previous php.pear.cvs (#42426) next »