public function testSetGetServerValue()
 {
     $this->_model->setServer(new Parameters([]));
     $this->assertSame([], $this->_model->getServer()->toArray());
     $this->assertSame($this->_model, $this->_model->setServer(new Parameters(['test' => 'value', 'null' => null])));
     $this->assertSame(['test' => 'value', 'null' => null], $this->_model->getServer()->toArray());
     $this->assertEquals('value', $this->_model->getServer('test'));
     $this->assertSame(null, $this->_model->getServer('non-existing'));
     $this->assertSame('default', $this->_model->getServer('non-existing', 'default'));
     $this->assertSame(null, $this->_model->getServer('null'));
 }
 public function testSetGetServer()
 {
     $this->assertSame(array(), $this->_model->getServer());
     $this->assertSame($this->_model, $this->_model->setServer(array('test' => 'value', 'null' => null)));
     $this->assertSame(array('test' => 'value', 'null' => null), $this->_model->getServer());
     $this->assertEquals('value', $this->_model->getServer('test'));
     $this->assertSame(null, $this->_model->getServer('non-existing'));
     $this->assertSame('default', $this->_model->getServer('non-existing', 'default'));
     $this->assertSame(null, $this->_model->getServer('null'));
 }