/** * @covers Redmine\Client * @test */ public function testGetAndSetCheckSslHost() { $client = new Client('http://test.local', 'asdf'); $this->assertInstanceOf('Redmine\\Client', $client->setCheckSslHost()); $this->assertFalse($client->getCheckSslHost()); $this->assertInstanceOf('Redmine\\Client', $client->setCheckSslHost(true)); $this->assertSame(2, $client->getCheckSslHost()); $this->assertInstanceOf('Redmine\\Client', $client->setCheckSslHost(false)); $this->assertFalse($client->getCheckSslHost()); }