/** * @test * @expectedException Mooti\Validator\Exception\InvalidTypeValidatorException * @expectedExceptionMessage The type "foo" is invalid */ public function getTypeValidatorThrowsInvalidTypeValidatorException() { $type = 'foo'; $validator = new Validator(); $validator->getTypeValidator($type); }