]> granicus.if.org Git - php/commitdiff
- There are no abstract static methods in classes, use interfaces
authorMarcus Boerger <helly@php.net>
Sat, 27 May 2006 01:56:42 +0000 (01:56 +0000)
committerMarcus Boerger <helly@php.net>
Sat, 27 May 2006 01:56:42 +0000 (01:56 +0000)
Zend/tests/abstract-static.phpt

index 9db88fc4c80f9083cf0787b346a52d22470768e0..9c5b5f5311fea21d639d493c777183ea243c7530 100644 (file)
@@ -2,23 +2,12 @@
 Test for abstract static classes
 --FILE--
 <?php
-abstract class ezcDbHandler extends PDO
+abstract class Test
 {
-    public function __construct( $dbParams, $dsn )
-    {
-        $user          = null;
-        $pass          = null;
-        $driverOptions = null;
-    }
-
     abstract static public function getName();
-
-    static public function hasFeature( $feature )
-    {
-        return false;
-    }
 }
 ?>
 DONE
---EXPECT--
-DONE
+--EXPECTF--
+
+Fatal error: Static function Test::getName() cannot be abstract in %sabstract-static.php on line %d