summaryrefslogtreecommitdiff
path: root/sapi/phpdbg/tests/include_once.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'sapi/phpdbg/tests/include_once.phpt')
-rw-r--r--sapi/phpdbg/tests/include_once.phpt16
1 files changed, 16 insertions, 0 deletions
diff --git a/sapi/phpdbg/tests/include_once.phpt b/sapi/phpdbg/tests/include_once.phpt
new file mode 100644
index 0000000000..0a00e04cde
--- /dev/null
+++ b/sapi/phpdbg/tests/include_once.phpt
@@ -0,0 +1,16 @@
+--TEST--
+include_once must include only once
+--PHPDBG--
+r
+q
+--EXPECTF--
+[Successful compilation of %s]
+prompt> 1
+[Script ended normally]
+prompt>
+--FILE--
+<?php
+
+include_once __DIR__.'/include.inc';
+include_once __DIR__.'/include.inc';
+