public function validatorShouldReturnErrorsIfTheValueIsNoObjectAndNotNull() { $this->assertTrue($this->validator->validate('foo')->hasErrors()); }