jar = new \GuzzleHttp\Cookie\CookieJar; // Uncomment if cookies need to be set } public function test() { //echo $this->url('lineup.json?show=found'); $test = parent::appTest($this->url("lineup.json?show=found")); echo $test->status; } public function livestats() { $status = "inactive"; $res = parent::execute($this->url("lineup.json?show=found")); $details = json_decode($res->getBody()); $data = []; if ($details) { $channel_count = count($details); $data["number_of_channels"] = number_format($channel_count); $status = "active"; } $res = parent::execute($this->url("tuners.html")); $tunersBody = $res->getBody(); if ($tunersBody) { $exp = "/