public function testGetInfoBundleNotFound() { $this->setExpectedException('Exception', 'Bundle "wrong.bundle" not found..'); $bundlesConfig = dirname(__FILE__) . '/../../configs/bundles.yml'; $bundle = new Bundle('wrong.bundle', new Config($bundlesConfig)); $bundle->getInfo(); }
/** * Get bundle info * * @param string $bundle Bundle name, URI or filename * * @throws \Exception * @return array */ public function getBundleInfo($bundle) { $bundle = new Bundle($bundle, $this->getConfig()); return $bundle->getInfo(); }