public function clear($key = null) { if (is_null($key)) { $this->vars = array(); } else { unset($this->vars[$key]); } }
function testClearAll() { $this->app->set('c', 1); $this->app->clear(); $var = $this->app->get('c'); $this->assertEquals(null, $var); }