xref: /PHP-7.0/Zend/tests/object-null.phpt (revision 07d0f0cf)
1--TEST--
2Test whether an object is NULL or not.
3--FILE--
4<?php
5
6class Bla
7{
8}
9
10$b = new Bla;
11
12var_dump($b != null);
13var_dump($b == null);
14var_dump($b !== null);
15var_dump($b === null);
16?>
17--EXPECT--
18bool(true)
19bool(false)
20bool(true)
21bool(false)
22