Robo\Robo::unsetContainer PHP 메소드

unsetContainer() 공개 정적인 메소드

Unsets the global container.
public static unsetContainer ( )
    public static function unsetContainer()
    {
        static::$container = null;
    }

Usage Example

예제 #1
0
 public function testThrowsExceptionWhenNoContainerAvailable()
 {
     \PHPUnit_Framework_TestCase::setExpectedExceptionRegExp('\\RuntimeException', '/container is not initialized yet.*/');
     Robo::unsetContainer();
     Robo::getContainer();
 }