Example #1
0
 /**
  * @covers Redmine\Client
  * @test
  */
 public function testGetAndSetUseHttpAuth()
 {
     $client = new Client('http://test.local', 'asdf');
     $this->assertInstanceOf('Redmine\\Client', $client->setUseHttpAuth());
     $this->assertTrue($client->getUseHttpAuth());
     $this->assertInstanceOf('Redmine\\Client', $client->setUseHttpAuth(true));
     $this->assertTrue($client->getUseHttpAuth());
     $this->assertInstanceOf('Redmine\\Client', $client->setUseHttpAuth(false));
     $this->assertFalse($client->getUseHttpAuth());
 }