public function testAppend() { $testKey = 'abc000'; $testValue = 'start'; $testAppendValue = '_end'; $mock = new MemcachedMock(); $this->assertFalse($mock->append($testKey, $testValue)); $mock->addServer('127.0.0.1', 11211); $this->assertFalse($mock->append(null, $testValue)); $this->assertFalse($mock->append($testKey, '1')); $mock->set($testKey, $testValue); $this->assertTrue($mock->append($testKey, $testAppendValue)); $this->assertSame($testValue . $testAppendValue, $mock->get($testKey)); $this->assertFalse($mock->append($testKey, xml_parser_create(''))); $mock->set($testKey, [10]); $this->assertFalse($mock->append($testKey, $testAppendValue)); }