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

testCanCheckForConfigEntry() public method

    public function testCanCheckForConfigEntry()
    {
        // ----------------------------------------------------------------
        // setup your test
        $obj = new ConfigList("DataSift\\Storyplayer\\ConfigLib\\StoryplayerConfig", __DIR__ . '/ConfigListTestData1');
        $obj->findConfigs();
        // ----------------------------------------------------------------
        // perform the change
        $actual1 = $obj->hasEntry('config-1');
        $actual2 = $obj->hasEntry('config-does-not-exist');
        // ----------------------------------------------------------------
        // test the results
        $this->assertTrue($actual1);
        $this->assertFalse($actual2);
    }