/** * @return ConstraintFactory */ private function createFactory() { return new ConstraintFactory($this->translator->reveal(), $this->patterns); }