DataSift\Storyplayer\ConfigLib\ConfigListTest::testIgnoresEmptyFolders PHP Method

testIgnoresEmptyFolders() public method

    public function testIgnoresEmptyFolders()
    {
        // ----------------------------------------------------------------
        // setup your test
        $obj = new ConfigList("DataSift\\Storyplayer\\ConfigLib\\StoryplayerConfig", __DIR__ . '/ConfigListEmptyFolder');
        // ----------------------------------------------------------------
        // perform the change
        $obj->findConfigs();
        // ----------------------------------------------------------------
        // test the results
        $configs = $obj->getEntries();
        $this->assertTrue(is_array($configs));
        $this->assertEquals(0, count($configs));
    }