/** * @expectedException RuntimeException */ public function testCheckSslPasswordTimeout() { $client = new Client(); $this->assertFalse($client->getStatus('hasSsl')); $client->setStatus('hasSsl', true); $this->assertTrue($client->getStatus('hasSsl')); $client->setSslMsgCount(Client::SSL_PASSWORD_MSG_MAX + 10); $this->assertEquals(110, $client->getSslMsgCount()); $client->checkSslPasswordTimeout(); }