public function testRootEnquiry() { $app = $this->getApp(); $action = new ShowPackage($app); $result = $action->execute('available', 'bolt/bolt', '~2.0', true); $this->assertArrayHasKey('bolt/bolt', $result); }
/** * Show packages. * * @param string $target * @param string $package * @param string $version * @param bool $root * * @return array */ public function showPackage($target, $package = '', $version = '', $root = false) { if (!$this->show) { $this->show = new ShowPackage($this->app); } return $this->show->execute($target, $package, $version, $root); }