Ejemplo n.º 1
0
 public function testDefaultsAreSet()
 {
     $settings = UnitTestingSettings::singleton();
     $this->assertEquals("default", $settings->SettingWithDefault);
     $settings->SettingWithDefault = "abc";
     $settings = UnitTestingSettings::singleton();
     $this->assertEquals("abc", $settings->SettingWithDefault);
 }
Ejemplo n.º 2
0
 public function testSettingsHaveNamespace()
 {
     $settings = new UnitTestingSettings();
     $this->assertEquals("UnitTesting", $settings->getNamespace());
 }