Exemplo n.º 1
0
 /**
  * @covers Redmine\Client
  * @test
  */
 public function testGetAndSetCheckSslCertificate()
 {
     $client = new Client('http://test.local', 'asdf');
     $this->assertInstanceOf('Redmine\\Client', $client->setCheckSslCertificate());
     $this->assertFalse($client->getCheckSslCertificate());
     $this->assertInstanceOf('Redmine\\Client', $client->setCheckSslCertificate(true));
     $this->assertTrue($client->getCheckSslCertificate());
     $this->assertInstanceOf('Redmine\\Client', $client->setCheckSslCertificate(false));
     $this->assertFalse($client->getCheckSslCertificate());
 }