public flushBuffers ( ) |
public function flushBuffers()
{
$this->_keyCache->clearKey($this->_nsKey, $this->_itemKey);
}
public function testFlushContentClearsKey() { $cache = $this->getMock('Swift_KeyCache'); $cache->expects($this->once())->method('clearKey')->with($this->_nsKey, 'foo'); $stream = new Swift_KeyCache_SimpleKeyCacheInputStream(); $stream->setKeyCache($cache); $stream->setNsKey($this->_nsKey); $stream->setItemKey('foo'); $stream->flushBuffers(); }