protected function validation1() { $x = new XNode('<html> <head> <title>Test page</title> </head> <body> <div class="hello2"> </body> </html>'); $this->equ($x->validate(), false); $x = new XNode('<html> <head> <title>Test page</title> </head> <body> <div class="hello2"> </div> </body> </html>'); $this->equ($x->validate(), true); }