public function __construct($version) { parent::__construct('PHPSpec2', $version); $dispatcher = new EventDispatcher(); $this->add(new Command\RunCommand($dispatcher)); $this->add(new Command\DescribeCommand($dispatcher)); }