public function testShouldThrowsAnExceptionWhenRuleIsNotInstanceOfRuleInterface() { $factory = new Factory(); $factory->appendRulePrefix('Respect\\Validation\\Exceptions\\'); $factory->rule('AgeException'); }