assertTrue( in_array( 'connect', $methods ), 'seems like this function is outside this class' ); } } /** * @covers XMLDB::isError * @todo Implement testisError(). */ public function testisError() { if (class_exists('XMLDB')) { $methods = get_class_methods( 'XMLDB'); $this->assertTrue( in_array( 'isError', $methods ), 'seems like this function is outside this class' ); } } }