public function providerDimensions() { return array(array(BusinessType::none(), Scope::none(), Country::none(), Publisher::none()), array(BusinessType::none(), Scope::none(), Country::create(), Publisher::create()), array(BusinessType::none(), Scope::none(), Country::create(1), Publisher::create(1)), array(BusinessType::b2b(), Scope::gglobal(), Country::none(), Publisher::none()), array(BusinessType::b2c(), Scope::publisher(), Country::create(1), Publisher::create(2))); }
/** * @dataProvider provider */ public function testConstruction(Country $country, $expectedIsDefined, $expectedToString) { $this->assertEquals($expectedToString, $country->__toString()); $this->assertEquals($expectedIsDefined, $country->isDefined()); $this->assertEquals(Country::none()->getKey(), $country->getKey()); }