public function testPeclPackage() { $logger = new Logger(); $logger->setQuiet(); $provider = new PeclProvider(); $provider->setPackageName('xdebug'); $extensionDownloader = new ExtensionDownloader($logger, new OptionResult()); $versionList = $extensionDownloader->knownReleases($provider); $this->assertNotCount(0, $versionList); }
/** * @dataProvider packageNameProvider */ public function testInstallPackages($extensionName, $extensionVersion = 'latest') { $logger = new Logger(); $logger->setDebug(); $manager = new ExtensionManager($logger); $peclProvider = new PeclProvider(); $downloader = new ExtensionDownloader($logger, new OptionResult()); $peclProvider->setPackageName($extensionName); $downloader->download($peclProvider, $extensionVersion); $ext = ExtensionFactory::lookup($extensionName); $this->assertNotNull($ext); $manager->installExtension($ext, array()); }
/** * @dataProvider packageNameProvider */ public function testInstallPackages($build, $extensionName, $extensionVersion, $options) { if (!$build) { $this->markTestSkipped('skip extension build test'); return; } $logger = new Logger(); $logger->setDebug(); $manager = new ExtensionManager($logger); $peclProvider = new PeclProvider(); $downloader = new ExtensionDownloader($logger, new OptionResult()); $peclProvider->setPackageName($extensionName); $downloader->download($peclProvider, $extensionVersion); $ext = ExtensionFactory::lookup($extensionName); $this->assertNotNull($ext); $manager->installExtension($ext, $options); }