public static function &getContainer($root = '.', $dirs = NULL) { if (self::$container == NULL) { self::$container = new Metrodi_Container($root, $dirs); } return self::$container; }
/** */ public function test_global_get_and_set() { $cont = Metrodi_Container::getContainer(); $test = $cont->get('flaga', 'foobar'); $this->assertEquals('foobar', $test); _set('flagb', 5); $this->assertEquals(5, _get('flagb')); }