public function testDecompressJsonData() { $decompressedData = RJson::unpack(static::$compressedData, $isJson = true); print "\n\nDecompressed JSON data\n"; print_r($decompressedData); $this->assertTrue($this->collectionOfData == $decompressedData); }
public static function saveData($data) { $compactData = RJson::unpack($data); return file_put_contents('final_array_unpacked.txt', serialize($compactData)); }