public function testFindCookieByName() { $coll = new THttpCookieCollection(); $coll->insertAt(0, new THttpCookie('name', 'value')); self::assertEquals('value', $coll->findCookieByName('name')->getValue()); self::assertNull($coll->findCookieByName('invalid')); }