public function testPut()
{
$cookie = new CICookie($input = m::mock('CI_Input'), 'foo');
$input->shouldReceive('set_cookie')->with(['name' => 'foo', 'value' => serialize('bar'), 'expire' => 2628000, 'domain' => '', 'path' => '/', 'prefix' => '', 'secure' => false]);
$cookie->put('bar');
}