Elcodi\Plugin\CustomShippingBundle\Tests\UnitTest\Provider\ShippingRangesProviderTest::getZoneMatcher PHP Method

getZoneMatcher() private method

Get zone matcher prophecy object
private getZoneMatcher ( $match = true ) : Elcodi\Component\Zone\Services\ZoneMatcher
return Elcodi\Component\Zone\Services\ZoneMatcher Cone matcher
    private function getZoneMatcher($match = true)
    {
        $zoneMatcher = $this->prophesize('Elcodi\\Component\\Zone\\Services\\ZoneMatcher');
        $zoneMatcher->isAddressContainedInZone(Argument::any(), Argument::any())->willReturn($match);
        return $zoneMatcher;
    }