Example #1
0
 public function tearDown()
 {
     // Delete the context
     $this->_core->context->delete();
     midgardmvc_core::clear_instance();
     parent::tearDown();
 }
Example #2
0
 /**
  * @expectedException InvalidArgumentException
  */
 public function test_singleton_nullable()
 {
     $midgardmvc = midgardmvc_core::get_instance();
     $midgardmvc->newproperty = true;
     $midgardmvc_new = midgardmvc_core::get_instance();
     $this->assertEquals(true, $midgardmvc_new->newproperty);
     midgardmvc_core::clear_instance();
     $midgardmvc = midgardmvc_core::get_instance($this->configuration);
     $midgardmvc->newproperty;
 }