public function testEmptyStringIsValid() { $constraint = new Issn(); $this->context ->expects($this ->never()) ->method('addViolation'); $this->validator ->validate('', $constraint); }