Propaganistas\LaravelPhone\Tests\PhoneValidatorTest::testValidatePhoneFaultyParameters PHP Method

testValidatePhoneFaultyParameters() public method

    public function testValidatePhoneFaultyParameters()
    {
        $this->setExpectedException('Propaganistas\\LaravelPhone\\Exceptions\\InvalidParameterException');
        // Validator with given country, correct type, faulty parameter.
        $this->performValidation(['field' => '016123456', 'rule' => 'BE,mobile,xyz']);
        // Validator with country field, correct type, faulty parameter.
        $this->performValidation(['field' => '016123456', 'rule' => 'mobile,xyz', 'field_country' => 'BE']);
    }