/** * @depends testErrorsCanBeRetrieved */ public function testOnlyRelevantErrorsAreReturned() { /** * Generate some errors then rerun testErrorsCanBeRetrieved */ $old = libxml_use_internal_errors(true); SimpleDOM::loadHTML('<html><bogus>'); $this->testErrorsCanBeRetrieved(); libxml_use_internal_errors($old); }