예제 #1
0
 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)));
 }
예제 #2
0
 /**
  * @dataProvider provider
  */
 public function testConstruction(Publisher $publisher, $expectedIsDefined, $expectedToString)
 {
     $this->assertEquals($expectedToString, $publisher->__toString());
     $this->assertEquals($expectedIsDefined, $publisher->isDefined());
     $this->assertEquals(Publisher::none()->getKey(), $publisher->getKey());
 }