Bob\Test\ApplicationTest::testLoadConfigsFromLoadPath PHP Метод

testLoadConfigsFromLoadPath() публичный Метод

    function testLoadConfigsFromLoadPath()
    {
        $cwd = getcwd();
        chdir(__DIR__ . '/fixtures');
        $this->application['config.load_path'] = array(__DIR__ . '/fixtures/tasks');
        $this->application->init();
        $this->assertTrue($this->application->taskDefined('foo'));
        $this->assertTrue($this->application->taskDefined('bar'));
        $this->assertContains(__DIR__ . '/fixtures/tasks/foo.php', $this->application->loadedConfigs);
        $this->assertContains(__DIR__ . '/fixtures/tasks/bar.php', $this->application->loadedConfigs);
        chdir($cwd);
    }