* @version $Id$ */ class RegistryTest extends UnitTestCase { function RegistryTest() { $this->UnitTestCase('Registry Test'); } function testAccess() { $registry = &SGL_Registry::singleton(); $this->assertFalse($registry->exists('a')); $this->assertNull($registry->get('a')); $thing = 'thing'; $registry->set('a', $thing); $this->assertTrue($registry->exists('a')); #$this->assertReference($registry->get('a'), $thing); } function testSingleton() { $this->assertReference( SGL_Registry::singleton(), SGL_Registry::singleton()); $this->assertIsA(SGL_Registry::singleton(), 'SGL_Registry'); } } ?>