Source for file index.php
Documentation is available at index.php
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* @author m2mtech <tech@m2m.at>
* @copyright 2007 m2m server software gmbh
* @license http://www.gnu.org/licenses/gpl.html GNU General Public License Version 2
* @link http://www.ea-geier.at/
chdir('../../'); // set root directory
* environment configuration
require_once('code/config.php');
require_once(eaSIMPLE_TEST . 'unit_tester.php');
require_once(eaSIMPLE_TEST . 'web_tester.php');
require_once(eaSIMPLE_TEST . 'mock_objects.php');
require_once(eaSIMPLE_TEST . 'reporter.php');
ob_start(); // allow also session testing - actually useless in php5
$test = &new TestSuite('All Tests for the ea-Geier');
if (!isset ($_GET['what'])) $what = 'all';
if (($what == 'all') || ($what == 'checkclass')) {
if ($what != 'all') $test->_label = 'Tests of the Validator Class of the ea-Geier';
$test->addTestFile('test/simpletest/base/check.class.php');
if (($what == 'all') || ($what == 'dbclass')) {
if ($what != 'all') $test->_label = 'Tests of the Database Class of the ea-Geier';
$test->addTestFile('test/simpletest/base/db.class.php');
if (($what == 'all') || ($what == 'inputclass')) {
if ($what != 'all') $test->_label = 'Tests of the Input Class of the ea-Geier';
$test->addTestFile('test/simpletest/base/input.class.php');
if (($what == 'all') || ($what == 'mailclass')) {
if ($what != 'all') $test->_label = 'Tests of the Mail Class of the ea-Geier';
$test->addTestFile('test/simpletest/base/mail.class.php');
if (($what == 'all') || ($what == 'smartyclass')) {
if ($what != 'all') $test->_label = 'Tests of the Smarty Class of the ea-Geier';
$test->addTestFile('test/simpletest/base/smarty.class.php');
if (($what == 'all') || ($what == 'newuser')) {
if ($what != 'all') $test->_label = 'Tests of the New-User Functions of the ea-Geier';
$test->addTestFile('test/simpletest/base/newuser.inc.php');
if (($what == 'all') || ($what == 'sendpw')) {
if ($what != 'all') $test->_label = 'Tests of the Send-Password Functions of the ea-Geier';
$test->addTestFile('test/simpletest/base/sendpw.inc.php');
if (($what == 'all') || ($what == 'date')) {
if ($what != 'all') $test->_label = 'Tests of the Date Functions of the ea-Geier';
$test->addTestFile('test/simpletest/date.inc.php');
if (($what == 'all') || ($what == 'numbers')) {
if ($what != 'all') $test->_label = 'Tests of the Number Functions of the ea-Geier';
$test->addTestFile('test/simpletest/numbers.inc.php');
$test->run(new HtmlReporter());
|