summaryrefslogtreecommitdiff
path: root/ext/opcache/tests/is_script_cached.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/opcache/tests/is_script_cached.phpt')
-rw-r--r--ext/opcache/tests/is_script_cached.phpt15
1 files changed, 15 insertions, 0 deletions
diff --git a/ext/opcache/tests/is_script_cached.phpt b/ext/opcache/tests/is_script_cached.phpt
new file mode 100644
index 0000000000..6f40a7e35d
--- /dev/null
+++ b/ext/opcache/tests/is_script_cached.phpt
@@ -0,0 +1,15 @@
+--TEST--
+Test that script cached info is correct
+--INI--
+opcache.enable=1
+opcache.enable_cli=1
+--SKIPIF--
+<?php require_once('skipif.inc'); ?>
+--FILE--
+<?php
+var_dump(opcache_is_script_cached(__FILE__));
+var_dump(opcache_is_script_cached("nonexistent.php"));
+?>
+--EXPECT--
+bool(true)
+bool(false)