summaryrefslogtreecommitdiff
path: root/Zend/tests/object-null.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/object-null.phpt')
-rw-r--r--Zend/tests/object-null.phpt21
1 files changed, 21 insertions, 0 deletions
diff --git a/Zend/tests/object-null.phpt b/Zend/tests/object-null.phpt
new file mode 100644
index 0000000..650178c
--- /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)