public setCache ( BrowscapPHP\Cache\BrowscapCacheInterface $cache ) | ||
$cache | BrowscapPHP\Cache\BrowscapCacheInterface |
public function setCache(BrowscapCacheInterface $cache)
{
$this->cache = $cache;
return $this;
}
/** * Sets up the fixture, for example, open a network connection. * This method is called before a test is executed. */ public function setUp() { $cacheAdapter = new Memory(); $cache = new BrowscapCache($cacheAdapter); $this->object = new UpdateCommand(''); $this->object->setCache($cache); }