Changeset 917 in tests
- Timestamp:
- 07/19/2012 02:58:34 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/cache.php
r913 r917 78 78 function test_set() { 79 79 $key = rand_str(); 80 $val = rand_str(); 80 $val1 = rand_str(); 81 $val2 = rand_str(); 81 82 82 83 // memcached accepts set() if the key does not exist 83 $this->assertTrue($this->cache->set($key, $val)); 84 $this->assertEquals($val, $this->cache->get($key)); 84 $this->assertTrue($this->cache->set($key, $val1)); 85 $this->assertEquals($val1, $this->cache->get($key)); 86 // Second set() with same key should be allowed 87 $this->assertTrue($this->cache->set($key, $val2)); 88 $this->assertEquals($val2, $this->cache->get($key)); 85 89 } 86 90
Note: See TracChangeset
for help on using the changeset viewer.