/** * 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); }