summaryrefslogtreecommitdiff
path: root/tests/classes/static_mix_2.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/classes/static_mix_2.phpt')
-rw-r--r--tests/classes/static_mix_2.phpt27
1 files changed, 0 insertions, 27 deletions
diff --git a/tests/classes/static_mix_2.phpt b/tests/classes/static_mix_2.phpt
deleted file mode 100644
index 3052271307..0000000000
--- a/tests/classes/static_mix_2.phpt
+++ /dev/null
@@ -1,27 +0,0 @@
---TEST--
-You cannot overload a non static method with a static method
---SKIPIF--
-<?php if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2 needed'); ?>
---FILE--
-<?php
-
-class pass {
- function show() {
- echo "Call to function pass::show()\n";
- }
-}
-
-class fail extends pass {
- static function show() {
- echo "Call to function fail::show()\n";
- }
-}
-
-$t = new pass();
-$t->show();
-fail::show();
-
-echo "Done\n"; // shouldn't be displayed
-?>
---EXPECTF--
-Fatal error: Cannot make non static method pass::show() static in class fail in %s on line %d \ No newline at end of file