public function viewHelperRestoresMbInternalEncodingAfterExceptionOccurred() { mb_internal_encoding('ASCII'); $this->viewHelper->render('dummy', 'incorrectModeResultingInException'); $this->assertEquals('ASCII', mb_internal_encoding()); }