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

testNewConfigsAreAutoAddedToTheList() public method

    public function testNewConfigsAreAutoAddedToTheList()
    {
        // ----------------------------------------------------------------
        // setup the test
        $expectedName = 'test-config';
        $obj = new HardCodedList('DataSift\\Storyplayer\\ConfigLib\\WrappedConfig');
        // ----------------------------------------------------------------
        // perform the change
        $newConfig = $obj->newConfig($expectedName);
        // ----------------------------------------------------------------
        // test the results
        $configs = $obj->getConfigs();
        $this->assertTrue(isset($configs[$expectedName]));
        $this->assertSame($configs[$expectedName], $newConfig);
    }