/**
  * @dataProvider provideMergeData
  */
 public function testMerge($conf, $props, $value, $expectedReturnValue, $expectedConf)
 {
     $conf = new MockArrayConf($conf);
     $propAccess = new PropertyAccess($conf);
     $this->assertSame($expectedReturnValue, $propAccess->merge($props, $value));
     $this->assertSame($expectedConf, $conf->getConfig());
 }
 /**
  * @dataProvider provideInitialData
  */
 public function testStop($initialData)
 {
     $conf = new MockArrayConf($initialData);
     $expected = $conf->getConfig();
     $expected['main']['task-manager']['status'] = TaskManagerStatus::STATUS_STOPPED;
     $status = new TaskManagerStatus(new PropertyAccess($conf));
     $status->stop();
     $this->assertEquals($expected, $conf->getConfig());
 }