public function testCompressArrayDataToJson() { static::$compressedData = RJson::pack($this->collectionOfData, $toJson = true); print "Compressed to JSON"; print "\n" . static::$compressedData; $this->assertJson(static::$compressedData, 'Compressed Data to JSON'); }
public static function getData() { $data = file_get_contents('init_array.txt'); return RJson::pack(unserialize($data), true); }