From: Florent Bruneau Date: Thu, 11 Mar 2010 10:10:41 +0000 (+0100) Subject: Cleaner: don't hide syntax errors. X-Git-Tag: core/1.1.0~51 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=6e9ded6562cb252f2efabb48588820f729da11e5;p=platal.git Cleaner: don't hide syntax errors. Signed-off-by: Florent Bruneau --- 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';