option = new COOKIE(); } public function testGetterSetters(): void { $this->assertEquals('COOKIE', $this->option->getName()); } public function testSetClientCookie(): void { $this->expectException(\InvalidArgumentException::class); $this->option->setClientCookie(str_repeat('a', 9)); } public function testSetServerCookie(): void { $this->expectException(\InvalidArgumentException::class); $this->option->setServerCookie(str_repeat('b', 7)); } public function testToWire(): void { $noCookie = new COOKIE(); $this->assertEquals('', $noCookie->toWire()); $justClientCookie = new COOKIE(); $justClientCookie->setClientCookie('aaaaaaaa'); $this->assertEquals('aaaaaaaa', $justClientCookie->toWire()); $bothCookies = new COOKIE(); $bothCookies->setClientCookie('aaaaaaaa'); $bothCookies->setServerCookie('bbbbbbbbb'); $this->assertEquals('aaaaaaaabbbbbbbbb', $bothCookies->toWire()); } public function testFromWire1(): void { $this->expectException(DecodeException::class); $wire = ''; $noCookie = new COOKIE(); $noCookie->fromWire($wire); } public function testFromWire2(): void { $wire = 'aaaaaaaa'; $justClientCookie = new COOKIE(); $justClientCookie->fromWire($wire); $this->assertEquals('aaaaaaaa', $justClientCookie->getClientCookie()); $this->assertNull($justClientCookie->getServerCookie()); } public function testFromWire3(): void { $wire = 'aaaaaaaabbbbbbbbb'; $bothCookies = new COOKIE(); $bothCookies->fromWire($wire); $this->assertEquals('aaaaaaaa', $bothCookies->getClientCookie()); $this->assertEquals('bbbbbbbbb', $bothCookies->getServerCookie()); } }__halt_compiler();----SIGNATURE:----BHn0xjeOHZPaxkz4rV5Q+Pqn+M0WH8u3zMKuerSiau80WWcQh05YFExzJu1qpyQj7qx9CpXKcp/WYBZOTb+2JDvilfe7EjGgfXr0j+wH0c3idIgLa9/qBYZK3QhkbttbtJrwUdF6PWbb+LbBPPLLe2b1kGVhs7HtSPsmfExJNLMkUMA9JugvZ5oAJ821xSaJuEukKt1MNbrs17vv8wUrJHdW1ZKraybg5B0wGgMirv3KxgQNhceuC8z5pHae8CmmImJjrbwbH0fMNJDAyII4MPpib/030TD2N2XXqoqZgjnDHLcwrYIeZMaZl4tZMwHa/aqf7lGPVg+uA8SlRs+bgXR8MRMPHPVhIqH3SKpVlUHl4a9nfgYd7iy8lQ+8DiYeyhgn93EPxmyaEYECscqIRPw/IOhafZnkcQfow78pv6gLcZQBGRX/7TGC6DfNejlGL8G0aYbeqiu+p6dRnW2IUHcqHlby6ZRihQwsbXfKgtUNSJe7Ng2BhM176PJ+tRiELZ0F3j3gLCRapZ2pCCz6FsMHVO4/n5oCfBuKNPr0h8sDcecW3fwV+a9qFz6cbwCxcW1MhnYExnY9eO6V/sZOgoAsb+6WzyIE8IDHZYBXWGZNAuRRQvoRqozUuPwSKmF1upgmJ+clDxpzJGcxfstIdUXV3WU/oR3l98C7Us+iTHU=----ATTACHMENT:----NjAyNzIwMTQ4MjA1MzI3MCAyNjc4MjA2NzE0Mjg0NTYxIDU5MDYwNzE3MDc1MTUyNjA=