small hack to return by ref
[platal.git] / include / test.inc.php
index 0ff3d69..c5dc418 100644 (file)
  *  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:
 ?>