public function testSetConfigKeepsDefaults() { $config = array('foo' => 'bar', 'bind_port' => 9988); $server = new Aspamia_Http_Server(); $server->setConfig($config); $serverConfig = $this->readAttribute($server, '_config'); $this->assertEquals(Aspamia_Http_Server::DEFAULT_ADDR, $serverConfig['bind_addr']); }