driver = new NullDriver(); $this->item = new Item($this->driver, $this->key); } public function testGetKey() { $this->assertEquals($this->key, $this->item->getKey()); } public function testGet() { // No value set yet $this->assertNull($this->item->get()); // Set a value $this->item->set('bar') ->save(); $this->assertEquals('bar', $this->item->get()); } }