diff options
-rw-r--r-- | framework/TApplication.php | 2 | ||||
-rw-r--r-- | framework/prado.php | 2 | ||||
-rw-r--r-- | tests/FunctionalTests/framework/Web/UI/testTButton.php | 5 | ||||
-rw-r--r-- | tests/FunctionalTests/tests.php | 2 |
4 files changed, 7 insertions, 4 deletions
diff --git a/framework/TApplication.php b/framework/TApplication.php index 9051ea23..5506b38d 100644 --- a/framework/TApplication.php +++ b/framework/TApplication.php @@ -261,8 +261,6 @@ class TApplication extends TComponent */ protected function applyDefaultExceptionHandlers() { - set_error_handler(array('Prado','phpErrorHandler'),error_reporting()); - set_exception_handler(array('Prado','exceptionHandler')); } /** diff --git a/framework/prado.php b/framework/prado.php index a76f4d16..9a83518c 100644 --- a/framework/prado.php +++ b/framework/prado.php @@ -48,6 +48,8 @@ if(!function_exists('__autoload')) //Exception stack is empty if set error handlers requires TApplication //and TApplication then causes an exception during instantiation. //see TApplication::initDefaultExceptionHandlers() +set_error_handler(array('Prado','phpErrorHandler'),error_reporting()); +set_exception_handler(array('Prado','exceptionHandler')); /** * Includes TApplication class file diff --git a/tests/FunctionalTests/framework/Web/UI/testTButton.php b/tests/FunctionalTests/framework/Web/UI/testTButton.php index eb4c4987..46da58fe 100644 --- a/tests/FunctionalTests/framework/Web/UI/testTButton.php +++ b/tests/FunctionalTests/framework/Web/UI/testTButton.php @@ -2,7 +2,10 @@ class testTButton extends TPage { - + function onLoad($param) + { + $this->button2; + } } diff --git a/tests/FunctionalTests/tests.php b/tests/FunctionalTests/tests.php index 4e3c83d8..34edd870 100644 --- a/tests/FunctionalTests/tests.php +++ b/tests/FunctionalTests/tests.php @@ -4,7 +4,7 @@ require_once(dirname(__FILE__).'/../../framework/prado.php'); require_once(dirname(__FILE__).'/config.php'); -$application=new TApplication(dirname(__FILE__).'/framework/application.xml'); +$application=new TApplication(dirname(__FILE__).'/framework/application.xmla'); $application->run(); ?>
\ No newline at end of file |