Exemplo n.º 1
0
 /**
  * Tests the methods for getting, setting and clearing the default
  * service provider.
  */
 public function testGetDefaultAndSetDefault()
 {
     DI::clearDefault();
     // guard condition
     $di = DI::getDefault();
     // get a fresh default
     $this->assertInstanceOf('Vectorface\\SnappyRouter\\Di\\Di', $di);
     DI::setDefault($di);
     $this->assertEquals($di, DI::getDefault());
 }