assertEquals($event_name, $patch_event->getName()); $this->assertEquals($package, $patch_event->getPackage()); $this->assertEquals($url, $patch_event->getUrl()); $this->assertEquals($description, $patch_event->getDescription()); } public function patchEventDataProvider() { $prophecy = $this->prophesize('RectorPrefix20211211\\Composer\\Package\\PackageInterface'); $package = $prophecy->reveal(); return array(array(\RectorPrefix20211211\cweagans\Composer\PatchEvents::PRE_PATCH_APPLY, $package, 'https://www.drupal.org', 'A test patch'), array(\RectorPrefix20211211\cweagans\Composer\PatchEvents::POST_PATCH_APPLY, $package, 'https://www.drupal.org', 'A test patch')); } }