    public function testRedirectLinkGenerationException () {
        $this->setExpectedException (
            'StringUtilException', '',
            StringUtilException::PREG_REPLACE_CALLBACK_ERROR);

        // set this high enough to cause a redirect link replacement error, but not a CUrlRule error
        ini_set('pcre.backtrack_limit', '10');
        ini_set('pcre.recursion_limit', '10');

        Yii::app()->controller = new MarketingController (
            'campaign', new MarketingModule ('campaign', null));
        $_SERVER['SERVER_NAME'] = 'localhost';
        $cmb = $this->instantiate();
        $contact = $this->contacts('testUser_unsent');
        list($subject,$message,$uniqueId) = $cmb->prepareEmail(
            $this->campaign('redirectLinkGeneration'), $contact, false);
    }
The product receives input or data, but it does
        not validate or incorrectly validates that the input has the
        properties that are required to process the data safely and
        correctly.