/** * Registry is a singleton * @return MslsRegistry */ public static function instance() { if (!isset(self::$instance)) { self::$instance = new self(); } return self::$instance; }
/** * Verify the instance-method * @covers MslsRegistry::instance */ function test_instance_method() { $obj = MslsRegistry::instance(); $this->assertInstanceOf('MslsRegistry', $obj); return $obj; }