diff options
-rw-r--r-- | Zend/tests/abstract-static.phpt | 24 | ||||
-rw-r--r-- | Zend/tests/object-null.phpt | 21 |
2 files changed, 45 insertions, 0 deletions
diff --git a/Zend/tests/abstract-static.phpt b/Zend/tests/abstract-static.phpt new file mode 100644 index 0000000000..9db88fc4c8 --- /dev/null +++ b/Zend/tests/abstract-static.phpt @@ -0,0 +1,24 @@ +--TEST-- +Test for abstract static classes +--FILE-- +<?php +abstract class ezcDbHandler extends PDO +{ + 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 diff --git a/Zend/tests/object-null.phpt b/Zend/tests/object-null.phpt new file mode 100644 index 0000000000..650178c341 --- /dev/null +++ b/Zend/tests/object-null.phpt @@ -0,0 +1,21 @@ +--TEST-- +Test whether an object is NULL or not. +--FILE-- +<?php + +class Bla +{ +} + +$b = new Bla; + +var_dump($b != null); +var_dump($b == null); +var_dump($b !== null); +var_dump($b === null); +?> +--EXPECT-- +bool(true) +bool(false) +bool(true) +bool(false) |