X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Ftest.inc.php;h=2a7048e1c0a42eb63daf80c4b2a002a9f31cefb4;hb=23749c61b65d441b631e791005277ec1c69f4c83;hp=0ff3d6989e2587011cf6dbcb278b16f110962120;hpb=536fc7f7d2c9880d4c61469bcee6daaee73afaf5;p=platal.git diff --git a/include/test.inc.php b/include/test.inc.php index 0ff3d69..2a7048e 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';