point your browser to test/wui.php to see test results in your browser

This commit is contained in:
Sebastian Mendel
2008-12-10 13:19:54 +00:00
parent ce1d25289d
commit b5ff34658b
2 changed files with 24 additions and 8 deletions

View File

@@ -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 '<pre>';
AllTests::main();
echo '</pre>';
}*/
?>

19
test/wui.php Normal file
View File

@@ -0,0 +1,19 @@
<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* runs all defined tests
*
* @version $Id: AllTests.php 12036 2008-11-30 11:49:44Z lem9 $
* @package phpMyAdmin-test
*/
/**
*
*/
require_once 'AllTests.php';
echo '<pre>';
AllTests::main();
echo '</pre>';
?>