$tmp = $key2; } unset($data); } if (!array_key_exists($tmp, $hash)) { foreach ($outdata as $v) { array_push($this->data["fail"], $v); } $hash[$tmp] = 1; } unset($outdata); } } public function getResult() { $this->calculate($this->fileData1, $this->fileData2); $this->data["name"] = "autopack"; $this->data['success'][0] = array("diff autopack" => "success"); } public function getData() { return $this->data; } } $case = new TestStaticPack(); $case->setFile("a.txt", "b.txt"); $case->getResult(); $report = new TestReport(); $report->setData($case->getData()); $report->createTestReport();