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; }