Bob\Test\ApplicationTest::testMultipleRootConfigNamesChoosesFirstFound PHP Method

testMultipleRootConfigNamesChoosesFirstFound() public method

    function testMultipleRootConfigNamesChoosesFirstFound()
    {
        $cwd = getcwd();
        chdir(__DIR__ . '/fixtures');
        $this->application['config.file'] = array("Bobfile.php", "bob_config.php");
        $this->application->init();
        $this->assertTrue($this->application->taskDefined('foobar'));
        $this->assertContains(__DIR__ . '/fixtures/Bobfile.php', $this->application->loadedConfigs);
        chdir($cwd);
    }