/** * getSafe does not catch IntrusionExceptions */ function testStringVR_getSafe_attack() { $svr = new StringValidationRule('A_String', null, '^[abc]+$'); $this->setExpectedException('IntrusionException'); $svr->getSafe('testStringVR_getSafe_valid', 'aabbcc%2500'); }