Jyxo\Beholder\TestCase\ImapTest::testConnectionFailure PHP Method

testConnectionFailure() public method

Tests connection failure.
    public function testConnectionFailure()
    {
        $host = 'dummy.jyxo.com';
        $test = new Imap('Imap', $host);
        // @ on purpose
        $result = @$test->run();
        $this->assertEquals(\Jyxo\Beholder\Result::FAILURE, $result->getStatus());
        $this->assertEquals(sprintf('Connection error @%s:143', $host), $result->getDescription());
    }