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

testCanGetNewListedConfigObject() public method

    public function testCanGetNewListedConfigObject()
    {
        // ----------------------------------------------------------------
        // setup the test
        $expectedClassname = "DataSift\\Storyplayer\\ConfigLib\\WrappedConfig";
        // ----------------------------------------------------------------
        // perform the change
        $obj = new ConfigList($expectedClassname, __DIR__ . '/ConfigListTestData1');
        // ----------------------------------------------------------------
        // test the results
        $actualClassname = $obj->getWrappedConfigClassname();
        $this->assertEquals($expectedClassname, $actualClassname);
        $actualConfigObj = $obj->newWrappedConfigObject();
        $this->assertTrue($actualConfigObj instanceof WrappedConfig);
    }