seek_quarry
[ class tree: seek_quarry ] [ index: seek_quarry ] [ all elements ]

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:

author:  Chris Pollett chris@pollett.org
copyright:  2009 - 2013
link:  http://www.seekquarry.com/
filesource:  Source Code for this file
license:  GPL3


Includes:

require_once(BASE_DIR."/lib/unit_test.php") [line 89]
Load the base unit test class

require_once(BASE_DIR.'/configs/config.php') [line 46]
Load search engine wide configuration file







getClassNameFromFileName [line 237]

string getClassNameFromFileName( string $name)

Convert the convention for unit test file names into our convention for unit test class names



Tags:

return:  a camel-cased name ending with Test


Parameters

string   $name   a file name with words separated by underscores, ending in .php
[ Top ]



getTestNames [line 222]

array getTestNames( )

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:

return:  an array of unit test files


[ Top ]



listTests [line 115]

void listTests( )

This function is responsible for listing out HTML links to the available

unit tests a user can run




[ Top ]



runAllTests [line 137]

void runAllTests( )

Runs all the unit_tests in the current directory and displays the results



[ Top ]



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
[ Top ]



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.



[ Top ]



Documentation generated by phpDocumentor 1.4.3