public function let(RangeFileDirectory $charactersDirectory, PropertyFileDirectory $propertiesDirectory, PropertyAggregators $aggregators, Serializer $serializer) { $aggregators->getIterator()->willReturn(new \ArrayIterator()); $aggregators->addCharacters(Argument::any())->willReturn(null); $this->serializer = $serializer; $this->beConstructedWith($charactersDirectory, $propertiesDirectory, $aggregators, $serializer); }