public function testParseContent() { $handler = new CookieFileHandler(); $cookieJar = $handler->parseContent(''); $this->assertTrue($cookieJar instanceof CookieCollectionInterface); }
/** * @return CookieJarInterface */ private function getCookieJar() : CookieJarInterface { $handler = new CookieFileHandler((new Configuration())->setCookieDir(CookieFileHandlerTest::COOKIE_PATH)); return $handler->parseFile(CookieFileHandlerTest::COOKIE_TEST_FILE_NAME); }