loadConfigFromFile() публичный Метод

load a config file from disk, and store the config in $this
public loadConfigFromFile ( string $pathToFile ) : void
$pathToFile string the filename to load from
Результат void
Пример #1
0
 /**
  * @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);
 }