summaryrefslogtreecommitdiff
path: root/ext/opcache/tests/warning_replay.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/opcache/tests/warning_replay.phpt')
-rw-r--r--ext/opcache/tests/warning_replay.phpt15
1 files changed, 15 insertions, 0 deletions
diff --git a/ext/opcache/tests/warning_replay.phpt b/ext/opcache/tests/warning_replay.phpt
new file mode 100644
index 0000000000..e8903bbcf9
--- /dev/null
+++ b/ext/opcache/tests/warning_replay.phpt
@@ -0,0 +1,15 @@
+--TEST--
+Opcache should replay compilation warnings if opcache.record_warnings=1
+--INI--
+opcache.record_warnings=1
+--FILE--
+<?php
+
+require __DIR__ . '/warning_replay.inc';
+require __DIR__ . '/warning_replay.inc';
+
+?>
+--EXPECTF--
+Warning: Unsupported declare 'unknown' in %swarning_replay.inc on line 3
+
+Warning: Unsupported declare 'unknown' in %swarning_replay.inc on line 3