/**
  * @test
  */
 public function shouldRemoveDownloadWithRemovingLocalData()
 {
     $client = $this->getMock('Transmission\\Client');
     $client->expects($this->once())->method('call')->with('torrent-remove', array('ids' => array(1), 'delete-local-data' => true))->will($this->returnCallback(function () {
         return (object) array('result' => 'success');
     }));
     $torrent = new Torrent();
     $torrent->setId(1);
     $transmission = new Transmission();
     $transmission->setClient($client);
     $transmission->remove($torrent, true);
 }