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