From b5ff34658b28c575fe82a6de73333fc3439e9d9d Mon Sep 17 00:00:00 2001 From: Sebastian Mendel Date: Wed, 10 Dec 2008 13:19:54 +0000 Subject: [PATCH] point your browser to test/wui.php to see test results in your browser --- test/AllTests.php | 13 +++++-------- test/wui.php | 19 +++++++++++++++++++ 2 files changed, 24 insertions(+), 8 deletions(-) create mode 100644 test/wui.php diff --git a/test/AllTests.php b/test/AllTests.php index ec2251a14..c2c9e5541 100644 --- a/test/AllTests.php +++ b/test/AllTests.php @@ -18,6 +18,11 @@ if (! defined('PMA_MAIN_METHOD')) { // required to not die() in some libraries define('PHPMYADMIN', true); +// just add $_SESSION array once, so no need to test for existance evrywhere to get rid of NOtices about this +if (empty($_SESSION)) { + $_SESSION = array(); +} + /** * */ @@ -83,12 +88,4 @@ class AllTests return $suite; } } -// Please clarify the reason of this section; it has for effect -// of running the tests a second time. -/* -if (PMA_MAIN_METHOD == 'AllTests::main') { - echo '
';
-    AllTests::main();
-    echo '
'; -}*/ ?> diff --git a/test/wui.php b/test/wui.php new file mode 100644 index 000000000..6d2e37ca8 --- /dev/null +++ b/test/wui.php @@ -0,0 +1,19 @@ +'; +AllTests::main(); +echo ''; + +?> \ No newline at end of file