summaryrefslogtreecommitdiffstats
path: root/application/third_party/test-more-php/t/testertests_require_ok_badlib.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/third_party/test-more-php/t/testertests_require_ok_badlib.php')
-rwxr-xr-xapplication/third_party/test-more-php/t/testertests_require_ok_badlib.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/application/third_party/test-more-php/t/testertests_require_ok_badlib.php b/application/third_party/test-more-php/t/testertests_require_ok_badlib.php
new file mode 100755
index 000000000..12d0e8b7e
--- /dev/null
+++ b/application/third_party/test-more-php/t/testertests_require_ok_badlib.php
@@ -0,0 +1,12 @@
+<?php
+
+
+
+ $lib = isset($_SERVER['TESTLIB']) ? $_SERVER['TESTLIB'] : 'Test-Simple.php';
+ require_once($lib);
+ plan(2);
+
+ require_ok('badlib.php','Requiring a file with bad syntax should be not ok');
+
+ ok(1, 'Continue testing after failed require');
+?>