public function stringValidatorShouldReturnErrorIfNumberIsGiven() { $this->assertTrue($this->validator->validate(42)->hasErrors()); }