Procedural File: index.php
Source Location: /tests/index.php
Page Details:
SeekQuarry/Yioop -- Open Source Pure PHP Search Engine, Crawler, and Indexer
Copyright (C) 2009 - 2013 Chris Pollett chris@pollett.org LICENSE: 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 3 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, see <http://www.gnu.org/licenses/>. END LICENSE Web page used to display test results for the available unit tests of the SeekQuarry/Yioop Search engine
Tags:
Includes:
getClassNameFromFileName [line 237]
string getClassNameFromFileName(
string $name)
|
|
Convert the convention for unit test file names into our convention for unit test class names
Tags:
Parameters
| string |
$name |
a file name with words separated by underscores, ending in .php |
getTestNames [line 222]
Gets the names of all the unit test files in the current directory. Doesn't really check for this explicitly, just checks if the file end with _test.php
Tags:
listTests [line 115]
This function is responsible for listing out HTML links to the available unit tests a user can run
runAllTests [line 137]
Runs all the unit_tests in the current directory and displays the results
runTest [line 171]
void runTest(
string $name)
|
|
Uses $name to load a unit test class, run the tests in it and display the results
Parameters
| string |
$name |
the name of a unit test file in the current directory |
runTestBasedOnRequest [line 153]
void runTestBasedOnRequest(
)
|
|
Run the single unit test whose name is given in $_REQUEST['test'] and display the results. If the unit test file was blah_test.php, then $_REQUEST['test'] should be blah.
|