public function forget() { $this->input->set_cookie(['name' => $this->options['name'], 'value' => '', 'expiry' => '']); }
public function testForget() { $cookie = new CICookie($input = m::mock('CI_Input'), 'foo'); $input->shouldReceive('set_cookie')->with(['name' => 'foo', 'value' => '', 'expiry' => ''])->once(); $cookie->forget(); }