diff options
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/autoprepend.t | 2 | ||||
-rwxr-xr-x | tests/exec.t | 2 | ||||
-rwxr-xr-x | tests/getopt.t | 2 | ||||
-rwxr-xr-x | tests/it.t | 2 | ||||
-rwxr-xr-x | tests/it_dbi.t | 2 | ||||
-rwxr-xr-x | tests/it_html.t | 2 | ||||
-rwxr-xr-x | tests/it_url.t | 4 | ||||
-rwxr-xr-x | tests/it_xml.t | 2 | ||||
-rwxr-xr-x | tests/itjs.t | 2 |
9 files changed, 1 insertions, 19 deletions
diff --git a/tests/autoprepend.t b/tests/autoprepend.t index 8f4f52f..bf40605 100755 --- a/tests/autoprepend.t +++ b/tests/autoprepend.t @@ -1,8 +1,6 @@ #!/www/server/bin/php -qC <?php -require "searchlib/search_test.class"; - it_text::init(); $GLOBALS['it_text']->statictext = array( '_' => array("de" => "Deutsch", "en" => "English"), diff --git a/tests/exec.t b/tests/exec.t index 28e77a5..05aac98 100755 --- a/tests/exec.t +++ b/tests/exec.t @@ -3,8 +3,6 @@ # Tests for getopt in it.class -require 'searchlib/search_test.class'; - is(it::exec("echo gna"), "gna\n", "basic exec"); is(it::exec("echo {arg}", array('arg' => 'gna')), "gna\n", "exec with argument"); diff --git a/tests/getopt.t b/tests/getopt.t index edebee3..56974fe 100755 --- a/tests/getopt.t +++ b/tests/getopt.t @@ -3,8 +3,6 @@ # Tests for getopt in it.class -require 'search_test.class'; - $GLOBALS['usage'] = "Usage: doesnotexist.php [OPTIONS] Some help to a not existing program -h,--help the help argument @@ -3,8 +3,6 @@ # Tests for it.class -require 'searchlib/search_test.class'; - function match( $regex, $string, $exp, $name ) { $GLOBALS['TEST_MORE_LEVEL'] = 1; diff --git a/tests/it_dbi.t b/tests/it_dbi.t index 350c6e2..faf243d 100755 --- a/tests/it_dbi.t +++ b/tests/it_dbi.t @@ -3,8 +3,6 @@ # Tests for it_dbi.class -require 'searchlib/search_test.class'; - # Initialize DB $db = array('db' => "lib_search_ch", 'safety' => 0); $dbi = new it_dbi($db); diff --git a/tests/it_html.t b/tests/it_html.t index e77a0a1..005b8a7 100755 --- a/tests/it_html.t +++ b/tests/it_html.t @@ -3,8 +3,6 @@ # Tests for html.class -require 'searchlib/search_test.class'; - # Traditional html generation new it_html(array('htmltype' => "html")); diff --git a/tests/it_url.t b/tests/it_url.t index bc63bcb..b04618d 100755 --- a/tests/it_url.t +++ b/tests/it_url.t @@ -3,13 +3,9 @@ # Tests for url.class, currently only constructor's parser -require 'searchlib/search_test.class'; - # Create object and parse url $url = new it_url('HTTP://falcon:joshua@www.Relog.CH:80/default.asp'); -plan(9); - is( $url->url, 'http://www.relog.ch/', diff --git a/tests/it_xml.t b/tests/it_xml.t index 5651fbe..cfb95b2 100755 --- a/tests/it_xml.t +++ b/tests/it_xml.t @@ -3,8 +3,6 @@ # Tests for xml.class -require 'searchlib/search_test.class'; - function match($xmldata, $expected, $name, $prefix = "") { $classname = $prefix ? ($prefix . "_xml") : "it_xml"; diff --git a/tests/itjs.t b/tests/itjs.t index ef3437a..f616ced 100755 --- a/tests/itjs.t +++ b/tests/itjs.t @@ -3,7 +3,7 @@ # Tests for itjs.class, currently only itjs::serialize() -require 'searchlib/search_test.class'; +$_GET['aa'] = 1; is( itjs::serialize(array()), |