public function testGetNoValue() { $adapter = new MongoDBStorageAdapter($this->mongo); $this->mongo->coll->method('findOne')->will($this->returnValue(null)); $result = $adapter->get('key'); $this->assertSame(true, $result); }