public function testDateTimeClassIsValid() { $this->context ->expects($this ->never()) ->method('addViolation'); $this->validator ->validate(new \DateTime(), new Time()); }