summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rwxr-xr-xtests/getopt.t2
-rwxr-xr-xtests/it_dbi.t2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/getopt.t b/tests/getopt.t
index 41e985d..2fbe322 100755
--- a/tests/getopt.t
+++ b/tests/getopt.t
@@ -5,7 +5,7 @@
require 'searchlib/search_test.class';
-$usage = "Usage: doesnotexist.php [OPTIONS]
+$GLOBALS['usage'] = "Usage: doesnotexist.php [OPTIONS]
Some help to a not existing program
-h,--help the help argument
-a,--argument=ARG the arg argument
diff --git a/tests/it_dbi.t b/tests/it_dbi.t
index cd8c650..0c30768 100755
--- a/tests/it_dbi.t
+++ b/tests/it_dbi.t
@@ -177,6 +177,6 @@ foreach (new it_dbi_test('foo <>' => "") as $id => $record)
is($count, 2, "Iterator with select");
$count = 0;
-foreach ($record as $rec)
+foreach ($record as $dummy_rec)
$count++;
is($count, 2, "Iterator reused");