/** * Tests if the validateCallerId method only accept string * @param mixed $sampleType * @throws ValidationException * @dataProvider typeProvider */ public function testValidateCallerIdThrowingTypeErrors($sampleType) { if (!is_string($sampleType)) { $this->setExpectedException(ValidationException::class, sprintf(MessageValidator::TYPE_ERROR, "string", gettype($sampleType))); } MessageValidator::validateCallerId($sampleType); }