set('key', 'value'); $data = BasicRegistry::getRegistry()->getMap(); $this->assertEquals('value', $data['key']); } /** * @depends testSet * * @author Lionel Lecaque, lionel@taotesting.com */ public function testGet() { $value = BasicRegistry::getRegistry()->get('key'); $this->assertEquals('value', $value); } /** * @depends testSet * * @author Lionel Lecaque, lionel@taotesting.com */ public function testRemove() { $data = BasicRegistry::getRegistry()->getMap(); $this->assertTrue(isset($data['key'])); BasicRegistry::getRegistry()->remove('key'); $data = BasicRegistry::getRegistry()->getMap(); $this->assertFalse(isset($data['key'])); } }