DataSift\Storyplayer\ConfigLib\WrappedConfigTest::testAcceptsEmptyConfigFiles PHP Method

testAcceptsEmptyConfigFiles() public method

    public function testAcceptsEmptyConfigFiles()
    {
        // ----------------------------------------------------------------
        // setup your test
        $expectedConfig = new BaseObject();
        $expectedName = "wrapped-config-is-empty";
        $obj = new WrappedConfig();
        // ----------------------------------------------------------------
        // perform the change
        $obj->loadConfigFromFile(__DIR__ . "/wrapped-config-is-empty.json");
        // ----------------------------------------------------------------
        // test the results
        // make sure the rest of the object has been left alone
        $actualConfig = $obj->getConfig();
        $actualName = $obj->getName();
        $this->assertEquals($expectedConfig, $actualConfig);
        $this->assertEquals($expectedName, $actualName);
    }
WrappedConfigTest