From f4083c95f2ef128e683acd2c4e39cfa1a8d8b0f1 Mon Sep 17 00:00:00 2001 From: Fernando Ontiveros Date: Fri, 13 Jul 2012 11:12:36 -0400 Subject: [PATCH] fixing small issue in gulliver/PMException --- gulliver/system/class.pmException.php | 3 ++- tests/automated/gulliver/system/classPMExceptionTest.php | 2 +- tests/bootstrap.php | 8 ++++---- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/gulliver/system/class.pmException.php b/gulliver/system/class.pmException.php index f3cfd58e2..47f855598 100755 --- a/gulliver/system/class.pmException.php +++ b/gulliver/system/class.pmException.php @@ -8,7 +8,8 @@ class PMException extends Exception { public function __construct($message, $code = 0, $previous = null) { - parent::__construct($message, 1, $previous); + //parent::__construct($message, 1, $previous); + parent::__construct($message, 1); } public function __toString() { diff --git a/tests/automated/gulliver/system/classPMExceptionTest.php b/tests/automated/gulliver/system/classPMExceptionTest.php index 8fa536f77..69e263a11 100644 --- a/tests/automated/gulliver/system/classPMExceptionTest.php +++ b/tests/automated/gulliver/system/classPMExceptionTest.php @@ -45,7 +45,7 @@ class classPMExceptionTest extends PHPUnit_Framework_TestCase public function testNumberOfMethodsInThisClass() { $methods = get_class_methods('PMException'); - $this->assertTrue( count($methods) == 9); + $this->assertTrue( count($methods) == 8); } /** diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 5d0af11aa..2c3ee0fd0 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -20,11 +20,11 @@ define('DB_NAME', $GLOBALS['DB_NAME']); define('DB_USER', $GLOBALS['DB_USER']); define('DB_PASS', $GLOBALS['DB_PASS']); define('DB_HOST', $GLOBALS['DB_HOST']); -define('PATH_C', PATH_TRUNK . 'tmp' ); -define('PATH_SMARTY_C', PATH_TRUNK . 'tmp' ); -define('PATH_SMARTY_CACHE', PATH_TRUNK . 'tmp' ); +define('PATH_C', PATH_TRUNK . 'tmp/' ); +define('PATH_SMARTY_C', PATH_TRUNK . 'tmp/' ); +define('PATH_SMARTY_CACHE', PATH_TRUNK . 'tmp/' ); -mkdir (PATH_C); +@mkdir (PATH_C); require PATH_HOME . 'engine' . PATH_SEP . 'config' . PATH_SEP . 'paths.php'; set_include_path(