/** * @test */ public function removeSection() { Configuration::reset(); Configuration::set('test', 'key1', TRUE); Configuration::set('test', 'key2', TRUE); Configuration::set('othersection', 'key3', TRUE); $test_section = Configuration::getSection('test'); $this->assertSame(2, count($test_section)); Configuration::removeSection('test'); $this->assertNull(Configuration::getSection('test')); $this->assertSame(1, count(Configuration::getSection('othersection'))); }