/** * @return void */ public function testBundleNameFinderShouldFindBundleNames() { $options = [BundleNameFinder::OPTION_KEY_PROJECT_PATH_PATTERN => __DIR__ . '/Fixtures/Project/src/', BundleNameFinder::OPTION_KEY_VENDOR_PATH_PATTERN => __DIR__ . '/Fixtures/VendorMock/*/src/', BundleNameFinder::OPTION_KEY_APPLICATION => 'Application']; $bundleNameFinder = new BundleNameFinder($options); $bundleNames = $bundleNameFinder->getBundleNames(); $this->assertContains('FooBundle', $bundleNames); $this->assertContains('BarBundle', $bundleNames); }
/** * @return void */ public function testBundleNameFinderShouldFindBundleNames() { $bundleNameFinder = new BundleNameFinder(); $bundleNames = $bundleNameFinder->getBundleNames(); $this->assertTrue(count($bundleNames) > 0); }