public function tearDown()
 {
     if (file_exists($this->configFile)) {
         unlink($this->configFile);
     }
     parent::tearDown();
 }
 public function setUp()
 {
     $this->influxDb = $this->getMockBuilder('InfluxDB\\Client')->setMethods([])->setConstructorArgs([''])->disableOriginalConstructor()->getMock();
     $this->client = new InfluxDbClient($this->influxDb, 'dbname');
     $logger = $this->getMock('\\Psr\\Log\\LoggerInterface');
     $this->client->setLogger($logger);
     parent::setUp();
 }
 public function setUp()
 {
     $this->logger = $this->getMock('\\Psr\\Log\\LoggerInterface');
     $this->httpClient = $this->getMock('GuzzleHttp\\ClientInterface');
     $this->api = $this->getMock('Martial\\Transmission\\API\\RpcClient', [], [$this->httpClient, '', '', $this->logger]);
     $this->csrfException = $this->getMock('Martial\\Transmission\\API\\CSRFException', ['getSessionId']);
     $this->csrfException->method('getSessionId')->will($this->returnValue('123'));
     $this->api->method('sessionGet')->willThrowException($this->csrfException);
     $this->api->method('torrentGet')->will($this->returnValue($this->expectedTorrentList));
     //$this->client = $this->getMock('TransmissionClient', ['getSessionId'], [$this->api]);
     $this->client = new TransmissionClient($this->api);
     parent::setUp();
 }
 public function setUp()
 {
     $this->httpClient = $this->getMock('GuzzleHttp\\ClientInterface');
     $this->client = new WeburgClient($this->httpClient);
     parent::setUp();
 }