Beispiel #1
0
 public static function &getContainer($root = '.', $dirs = NULL)
 {
     if (self::$container == NULL) {
         self::$container = new Metrodi_Container($root, $dirs);
     }
     return self::$container;
 }
Beispiel #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'));
 }