function it_requires_that_it_is_one_of_allowed_types() { $this->beConstructedWith('foo'); $this->shouldThrow(InvalidTypeException::class)->duringInstantiation(); }