Esempio n. 1
0
 /**
  */
 public function test_magic_call()
 {
     _set('env', 'dev');
     ob_start();
     $this->proto->methodCall();
     $output = ob_get_contents() . ob_end_clean();
     $this->assertEquals(0, strpos($output, 'Called [methodCall] against proto object of type: thing'));
 }
Esempio 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'));
 }