Esempio n. 1
0
 /**
  * @dataProvider provider
  */
 public function testConstruction(Scope $scope, $expectedIsDefined, $expectedToString)
 {
     $this->assertEquals($expectedToString, $scope->__toString());
     $this->assertEquals($expectedIsDefined, $scope->isDefined());
     $this->assertEquals(Scope::none()->getKey(), $scope->getKey());
 }
Esempio n. 2
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)));
 }