PHP Класс CommerceGuys\Addressing\Tests\Repository\ZoneMatcherTest

Наследование: extends PHPUnit_Framework_TestCase
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$matcher CommerceGuys\Zone\Matcher\ZoneMatcher The zone matcher.
$zones array Used for constructing the mocks.

Открытые методы

Метод Описание
setUp ( )
testConstructor ( )
testMatch ( )
testMatchAll ( )

Защищенные методы

Метод Описание
getZone ( string $id, integer $priority, boolean $match ) : Zone Returns a mock zone based on the provided data.

Описание методов

getZone() защищенный Метод

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.
Результат CommerceGuys\Zone\Model\Zone

setUp() публичный Метод

public setUp ( )

testConstructor() публичный Метод

public testConstructor ( )

testMatch() публичный Метод

public testMatch ( )

testMatchAll() публичный Метод

public testMatchAll ( )

Описание свойств

$matcher защищенное свойство

The zone matcher.
protected ZoneMatcher,CommerceGuys\Zone\Matcher $matcher
Результат CommerceGuys\Zone\Matcher\ZoneMatcher

$zones защищенное свойство

Used for constructing the mocks.
protected array $zones
Результат array