/** * Tests if the validateDbCalls method only accept integer * @param mixed $sampleType * @throws ValidationException * @dataProvider typeProvider */ public function testValidateDbCallsThrowingTypeErrors($sampleType) { if (!is_int($sampleType) && $sampleType !== null) { $this->setExpectedException(ValidationException::class, sprintf(MessageValidator::TYPE_ERROR, "integer", gettype($sampleType))); } MessageValidator::validateDbCalls($sampleType); }