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));
 }
 protected function setUp()
 {
     parent::setUp();
     set_time_limit(0);
     \Myfox\Lib\AutoLoad::init();
     \Myfox\Lib\AutoLoad::register('myfox\\app', __DIR__ . '/../app');
     \Myfox\Lib\Cache\Apc::cleanAllCache();
 }