public function testPostPackageUninstallDoesNothingIfModuleNotInConfig()
 {
     FileInfoStub::defineFile('config/application.config.php', \file_get_contents(__DIR__ . '/TestAsset/application.config.php'));
     $package = $this->prophesize(PackageInterface::class);
     $package->getName()->willReturn('some/module');
     $package->getExtra()->willReturn(['zf' => ['module' => 'Some\\Module']]);
     $operation = $this->prophesize(InstallOperation::class);
     $operation->getPackage()->willReturn($package->reveal());
     $io = $this->prophesize(IOInterface::class);
     $io->write(Argument::type('string'))->shouldBeCalledTimes(2);
     $event = $this->prophesize(PackageEvent::class);
     $event->isDevMode()->willReturn(true);
     $event->getOperation()->willReturn($operation->reveal());
     $event->getIO()->willReturn($io->reveal());
     $this->assertNull(ComponentInstaller::postPackageUninstall($event->reveal()));
     $this->assertGreaterThan(0, FileInfoStub::getInvocationCount('exists'));
     $this->assertGreaterThan(0, FileInfoStub::getInvocationCount('get'));
     $this->assertSame(0, FileInfoStub::getInvocationCount('put'));
 }