summaryrefslogtreecommitdiffstats
path: root/application/third_party/test-more-php/t/testertests_include_ok_badlib.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/third_party/test-more-php/t/testertests_include_ok_badlib.php')
-rwxr-xr-xapplication/third_party/test-more-php/t/testertests_include_ok_badlib.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/application/third_party/test-more-php/t/testertests_include_ok_badlib.php b/application/third_party/test-more-php/t/testertests_include_ok_badlib.php
new file mode 100755
index 000000000..52764fb53
--- /dev/null
+++ b/application/third_party/test-more-php/t/testertests_include_ok_badlib.php
@@ -0,0 +1,21 @@
+<?php
+
+
+
+ $lib = isset($_SERVER['TESTLIB']) ? $_SERVER['TESTLIB'] : 'Test-Simple.php';
+ require_once($lib);
+ plan(5);
+
+ diag('Should fail 3 of 5 tests');
+
+ ok(1, "Pass one");
+
+ include_ok('missing.php','Including a missing file should be not ok');
+
+ include_ok('badlib.php','Including a file with bad syntax should be not ok');
+
+ include_ok('borklib.php','Including a file with non-syntactical errors should be not ok');
+
+ ok(1, 'Continue testing after failed include');
+
+?>