DataSift\Storyplayer\ConfigLib\WrappedConfig::getName PHP Method

getName() public method

returns the name assigned to this config
public getName ( ) : string | null
return string | null
    public function getName()
    {
        return $this->name;
    }

Usage Example

 /**
  * @covers DataSift\Storyplayer\ConfigLib\WrappedConfig::loadConfigFromFile()
  * @covers DataSift\Storyplayer\ConfigLib\WrappedConfig::getConfig()
  * @covers DataSift\Storyplayer\ConfigLib\WrappedConfig::getName()
  */
 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);
 }