// PHP4 function TestGetInstance() { $this->assertIsA( $obj1 =& DbConn::getInstance(), ‘DbConn’, ‘The returned object is an instance of DbConn’); $this->assertReference( $obj1, $obj2 =& DbConn::getInstance(), ‘Two calls to getInstance() return the same object’); }