public function validatorThrowsExceptionIfValueIsNotAnObject() { $this->validator->validate('a string'); }