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

hasData() public method

check for existence of data using a dot.notation.path
public hasData ( string $path ) : boolean
$path string the dot.notation.path to use to navigate
return boolean
    public function hasData($path)
    {
        return $this->config->hasData($path);
    }

Usage Example

 /**
  * @covers DataSift\Storyplayer\ConfigLib\WrappedConfig::hasData()
  */
 public function testHasDataReturnsFalseWhenConfigPathNotFoundInAScalar()
 {
     // ----------------------------------------------------------------
     // setup your test
     $obj = new WrappedConfig();
     $obj->loadConfigFromFile(__DIR__ . "/wrapped-config-2.json");
     // ----------------------------------------------------------------
     // perform the change
     $actual = $obj->hasData("storyplayer.ipAddress.netmask");
     // ----------------------------------------------------------------
     // test the results
     $this->assertFalse($actual);
 }