DataSift\Storyplayer\ConfigLib\HardCodedListTest::testCanCreateNewConfig PHP Method

testCanCreateNewConfig() public method

    public function testCanCreateNewConfig()
    {
        // ----------------------------------------------------------------
        // setup the test
        $expectedName = 'test-config';
        $obj = new HardCodedList('DataSift\\Storyplayer\\ConfigLib\\WrappedConfig');
        // ----------------------------------------------------------------
        // perform the change
        $newConfig = $obj->newConfig($expectedName);
        // ----------------------------------------------------------------
        // test the results
        $this->assertTrue($newConfig instanceof WrappedConfig);
    }