PHP Class CommerceGuys\Addressing\Tests\Repository\ZoneMatcherTest

Inheritance: extends PHPUnit_Framework_TestCase
Afficher le fichier Open project: commerceguys/zone

Protected Properties

Свойство Type Description
$matcher CommerceGuys\Zone\Matcher\ZoneMatcher The zone matcher.
$zones array Used for constructing the mocks.

Méthodes publiques

Méthode Description
setUp ( )
testConstructor ( )
testMatch ( )
testMatchAll ( )

Méthodes protégées

Méthode Description
getZone ( string $id, integer $priority, boolean $match ) : Zone Returns a mock zone based on the provided data.

Method Details

getZone() protected méthode

Returns a mock zone based on the provided data.
protected getZone ( string $id, integer $priority, boolean $match ) : Zone
$id string The zone id.
$priority integer The zone priority.
$match boolean Whether the zone should match.
Résultat CommerceGuys\Zone\Model\Zone

setUp() public méthode

public setUp ( )

testConstructor() public méthode

public testConstructor ( )

testMatch() public méthode

public testMatch ( )

testMatchAll() public méthode

public testMatchAll ( )

Property Details

$matcher protected_oe property

The zone matcher.
protected ZoneMatcher,CommerceGuys\Zone\Matcher $matcher
Résultat CommerceGuys\Zone\Matcher\ZoneMatcher

$zones protected_oe property

Used for constructing the mocks.
protected array $zones
Résultat array