public function test_should_data_compress_works_fine() { $apc = new Apc(__METHOD__, true); $val = array('a' => 1111, 'b' => str_pad('a', Apc::COMPRESS_SIZE + 1)); $this->assertTrue($apc->set('key1', $val)); // xxx: __destruct only for flush to apc $apc = null; $apc = new Apc(__METHOD__, true); $this->assertEquals($val, $apc->get('key1', false)); }