Robo\Robo::unsetContainer PHP Method

unsetContainer() public static method

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

Usage Example

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