summaryrefslogtreecommitdiff
path: root/Zend/tests/errmsg_018.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/errmsg_018.phpt')
-rw-r--r--Zend/tests/errmsg_018.phpt15
1 files changed, 15 insertions, 0 deletions
diff --git a/Zend/tests/errmsg_018.phpt b/Zend/tests/errmsg_018.phpt
new file mode 100644
index 0000000..fb05cb1
--- /dev/null
+++ b/Zend/tests/errmsg_018.phpt
@@ -0,0 +1,15 @@
+--TEST--
+errmsg: static abstract function
+--FILE--
+<?php
+
+class test {
+ static abstract function foo ();
+}
+
+echo "Done\n";
+?>
+--EXPECTF--
+Strict Standards: Static function test::foo() should not be abstract in %s on line %d
+
+Fatal error: Class test contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (test::foo) in %s on line %d