public function testPrefix() { $this->assertEquals($this->default['prefix'], \think\Cookie::prefix()); $prefix = '_test_'; $this->assertNotEquals($prefix, \think\Cookie::prefix()); \think\Cookie::prefix($prefix); $config = $this->ref->getValue(); $this->assertEquals($prefix, $config['prefix']); }