private function getComposerEvent(array $extra = [], $method = null) { $package = $this->mockPackage($extra); return new Event('', $this->mockComposer($package), $this->mockIO($method)); }