public function testConstructor()
{
// Note: other tests use $this->matcher instead of depending on
// testConstructor because of a phpunit bug with dependencies and mocks:
// https://github.com/sebastianbergmann/phpunit-mock-objects/issues/127
$repository = $this->getMockBuilder('CommerceGuys\\Zone\\Repository\\ZoneRepository')->disableOriginalConstructor()->getMock();
$matcher = new ZoneMatcher($repository);
// Confirm that the repository was properly set.
$this->assertSame($repository, $this->getObjectAttribute($matcher, 'repository'));
}