/** * Test response which an empty layer object */ function testGetConfigurationArrayEmpty() { $layer = new OLLayer(); $layer->write(); $result = $layer->getConfigurationArray(); $this->assertEquals($result['Type'], NULL); $this->assertEquals($result['Title'], NULL); $this->assertEquals($result['Url'], NULL); $this->assertEquals($result['Visible'], false); $this->assertEquals($result['ogc_name'], NULL); $this->assertEquals($result['GeometryType'], 'Point'); $this->assertEquals($result['Cluster'], NULL); $options = $result['Options']; $this->assertEquals($options['url_params']['map'], NULL); }