summaryrefslogtreecommitdiff
path: root/tests/it.t
diff options
context:
space:
mode:
Diffstat (limited to 'tests/it.t')
-rwxr-xr-xtests/it.t5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/it.t b/tests/it.t
index 08640cf..bab6685 100755
--- a/tests/it.t
+++ b/tests/it.t
@@ -463,9 +463,12 @@ is(it::split("(b)", "aba", ['delim_capture' => true]), ["a", "b", "a"]);
is(it::split("b", "aabaa", ['offset_capture' => true]), [["aa", 0], ["aa", 3]]);
it::file_put_contents("/tmp/it_test", "aa");
-is(($fh = fopen("/tmp/it_test", "r")) ? fgets($fh) : null, "aa");
+is(($fh = it::fopen("/tmp/it_test", "r")) ? fgets($fh) : null, "aa");
is(it::file_get_contents("/tmp/it_test"), "aa");
is(it::file("/tmp/it_test"), ["aa"]);
+ob_start();
+it::readfile("/tmp/it_test");
+is(ob_get_clean(), "aa");
it::file_put("/tmp/it_test", "bb");
is(it::file_get("/tmp/it_test"), "bb");