X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Ftest.inc.php;h=c5dc418b46c4e0ae3739125ac519351a0a0cb5f8;hb=737f1378c3bcebbbbf04fef0c0ffb9c99a1e4946;hp=a5a4fd737c05dfd7083b5f37e1ae91bf00269991;hpb=5d0c351e87013f73d7176d55814dc650f91a2939;p=platal.git diff --git a/include/test.inc.php b/include/test.inc.php index a5a4fd7..c5dc418 100644 --- a/include/test.inc.php +++ b/include/test.inc.php @@ -19,17 +19,19 @@ * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * ***************************************************************************/ -require_once dirname(__FILE__) . '/platal.inc.php'; -require_once 'PHPUnit/Framework.php'; +$testinclude = dirname(__FILE__) . '/../../include/test.inc.php'; +if (file_exists($testinclude)) { + require_once $testinclude; +} else { + require_once dirname(__FILE__) . '/platal.inc.php'; + require_once 'PHPUnit/Framework.php'; -function __autoload($class) -{ - pl_autoload($class); -} - -abstract class PlTestCase extends PHPUnit_Framework_TestCase -{ + function __autoload($class) + { + pl_autoload($class); + } } +XDB::setNonFatalError(); // vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8: ?>