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