setName('kupshop:test:cookies') ->setDescription('Test if cacheable responses return cookies'); } protected function execute(InputInterface $input, OutputInterface $output) { $errors = $this->test->testInitialRequestCookiesAbsence(); $failed = false; foreach ($errors as $error) { $failed = true; $output->writeln('COOKIE VRÁCENA: '.$error); } if ($failed) { $output->writeln('Více o tom jak funguje proxy_cache a jak má být nastavená: '.CookiesFunctionalityTest::WIKI_LINK); } else { $output->writeln('Úspěch: na úvodní požadavky nebyly vráceny cookies'); } return 0; } }