function _get($key, $def = NULL) { $a = Metrodi_Container::getContainer(); return $a->get($key, $def); }
/** */ 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')); }