summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerick Rethans <derick@php.net>2006-05-12 10:02:31 +0000
committerDerick Rethans <derick@php.net>2006-05-12 10:02:31 +0000
commit07d0f0cf015d98f5dd528099f87277851096023f (patch)
treee246263eee14c0ca06f7232904f7e6112afaaa52
parent046b34955cc0e73838a7483b633194911416e9ec (diff)
downloadphp-git-07d0f0cf015d98f5dd528099f87277851096023f.tar.gz
- MFH: Tests for BC breaking changes.
-rw-r--r--Zend/tests/abstract-static.phpt24
-rw-r--r--Zend/tests/object-null.phpt21
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)