mirror of
https://github.com/php-win-ext/php-memcached.git
synced 2026-03-24 09:02:10 +01:00
Tests in the experimental/ folder were not executed on CI. The ones that work move up, the few that remain in experimental/ need further investigation to get working or remove.
21 lines
401 B
PHP
21 lines
401 B
PHP
--TEST--
|
|
Compress below factor and fail to plain.
|
|
--SKIPIF--
|
|
<?php include "skipif.inc";?>
|
|
--FILE--
|
|
<?php
|
|
include dirname(__FILE__) . '/config.inc';
|
|
$m = memc_get_instance ();
|
|
|
|
ini_set('memcached.compression_threshold', 100);
|
|
ini_set('memcached.compression_factor', 10);
|
|
$array = range(1, 20000, 1);
|
|
|
|
$m->set('foo', $array, 10);
|
|
$rv = $m->get('foo');
|
|
var_dump($array === $rv);
|
|
|
|
|
|
--EXPECT--
|
|
bool(true)
|