コード例 #1
0
 public function testSetHasGetRemove()
 {
     $configuration = new Configuration(array('key' => 'value'));
     $this->assertTrue($configuration->has('key'));
     $this->assertEquals('value', $configuration->get('key'));
     $this->assertFalse($configuration->has('key2'));
     $configuration->remove('key');
     $this->assertFalse($configuration->has('key'));
     $configuration->set('key2', 'value2');
     $this->assertTrue($configuration->has('key2'));
     $this->assertEquals('value2', $configuration->get('key2'));
 }