Enabler PHP natives assertion in debug and use Platal::assert() as a
[platal.git] / include / test.inc.php
index 0ff3d69..c29f152 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2010 Polytechnique.org                              *
+ *  Copyright (C) 2003-2011 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
  *  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';