/**
  * Test remove task
  * 
  * @param array $task
  * @param int $taskId
  * @param string $exception
  * @param bool $result
  * @dataProvider removeProvider
  */
 public function testRemove(array $task, $taskId, $exception, $result)
 {
     if ($exception) {
         $this->expectException($exception);
     }
     if ($task) {
         $this->assertTrue((bool) $this->TaskClient->save($task), 'Can\'t save task for test');
     }
     $this->assertSame($result, $this->TaskClient->remove($taskId));
 }
 /**
  * Tast if task must be stopped
  * 
  * @param array $task
  * @param int $taskId
  * @param bool $mustStop
  * @dataProvider mustStopProvider
  */
 public function testMustStop(array $task, $taskId, $mustStop)
 {
     $this->TaskClient->save($task);
     $this->assertSame($mustStop, $this->TaskServer->mustStop($taskId));
 }