Tests\PHPSA\TestCase::getContext PHP Méthode

getContext() protected méthode

protected getContext ( ) : Context
Résultat PHPSA\Context
    protected function getContext()
    {
        /** @var \PHPSA\Context $context */
        $context = $this->getMock('\\PHPSA\\Context', array('notice'), array(new ConsoleOutput(), new Application(), EventManager::getInstance()));
        $context->setScope(new ClassDefinition('MathTest', null, 0));
        return $context;
    }