svn: /pear/packages/Text_Wiki/trunk/tests/ AllTests.php
| From: | Till Klampaeckel | Date: | Sat, 19 Mar 2011 18:34:56 +0000 |
| Subject: | svn: /pear/packages/Text_Wiki/trunk/tests/ AllTests.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-61495@lists.php.net to get a copy of this message | ||
till Sat, 19 Mar 2011 18:34:56 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=309443
Log:
* include config.php (if available) allows us to run 'phpunit AllTests.php' as well
Changed paths:
U pear/packages/Text_Wiki/trunk/tests/AllTests.php
Modified: pear/packages/Text_Wiki/trunk/tests/AllTests.php
===================================================================
--- pear/packages/Text_Wiki/trunk/tests/AllTests.php 2011-03-19 18:34:24 UTC (rev 309442)
+++ pear/packages/Text_Wiki/trunk/tests/AllTests.php 2011-03-19 18:34:56 UTC (rev 309443)
@@ -1,4 +1,6 @@
<?php
+@include dirname(__FILE__) . '/config.php';
+
require_once 'PHPUnit/Extensions/PhptTestSuite.php';
require_once 'Text_Wiki_Tests.php';
require_once 'Text_Wiki_Render_Tests.php';
@@ -12,7 +14,7 @@
public static function suite()
{
$suite = new PHPUnit_Framework_TestSuite('Text_Wiki_TestSuite');
-
+
/* almost all phpt tests are failling and need to be fixed
before uncommenting the code below
$phptTests = new PHPUnit_Extensions_PhptTestSuite('.');
@@ -25,9 +27,7 @@
$suite->addTestSuite('Text_Wiki_Render_Tiki_AllTests');
$suite->addTestSuite('Text_Wiki_Parse_Mediawiki_AllTests');
$suite->addTestSuite('Text_Wiki_Generic_Transform_Tests');
-
+
return $suite;
}
}
-
-?>