/** * @expectedException \Phly\Nodelist\InvalidClosureException */ public function testCallingUndefinedMethodsShouldRaiseAnException() { $nl = new NodeList(array()); $nl->doNothing(); }