/** * getSafe does not catch IntrusionExceptions */ function testIntegerVR_getSafe_attack() { $ivr = new IntegerValidationRule('An_Integer', null, 0, PHP_INT_MAX); $this->setExpectedException('IntrusionException'); $ivr->getSafe('testIntegerVR_getSafe_valid', '00%2500'); }