public function execute(DispatchContext $dispatchContext = null) { $dispatchContext->get('mock')->doSomething(); }
public function testUnknownKeyThrowsException() { $instance = new DispatchContext(); $this->setExpectedException('InvalidArgumentException'); $instance->get('FOO'); }