X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Ftest.inc.php;h=c5dc418b46c4e0ae3739125ac519351a0a0cb5f8;hb=7f8e81bbf66f2fe959e93f865fd74a08e20e9fee;hp=0ff3d6989e2587011cf6dbcb278b16f110962120;hpb=536fc7f7d2c9880d4c61469bcee6daaee73afaf5;p=platal.git diff --git a/include/test.inc.php b/include/test.inc.php index 0ff3d69..c5dc418 100644 --- a/include/test.inc.php +++ b/include/test.inc.php @@ -19,7 +19,10 @@ * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * ***************************************************************************/ -if (!@include_once dirname(__FILE__) . '/../../include/test.inc.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'; @@ -28,6 +31,7 @@ if (!@include_once dirname(__FILE__) . '/../../include/test.inc.php') { pl_autoload($class); } } +XDB::setNonFatalError(); // vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8: ?>