Skip to content

Commit

Permalink
Cleaner handling of servers that aren't reachable
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Aug 21, 2014
1 parent 9e1e644 commit 7521c98
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion framework/Imap_Client/test/Horde/Imap/Client/Live/Imap.php
Expand Up @@ -70,7 +70,17 @@ static public function tearDownAfterClass()

public function testPreLoginCommands()
{
$c = self::$live->capability;
try {
$c = self::$live->capability;
} catch (Horde_Imap_Client_Exception $e) {
switch ($e->getCode()) {
case $e::SERVER_CONNECT:
$this->markTestSkipped('Could not connect to server');
break;
}

throw $e;
}

$this->assertInstanceOf(
'Horde_Imap_Client_Data_Capability',
Expand Down

0 comments on commit 7521c98

Please sign in to comment.