Skip to content

Commit

Permalink
At least one version of Courier is flat-out broken when it comes to s…
Browse files Browse the repository at this point in the history
…orting, so skip those tests
  • Loading branch information
slusarz committed Aug 4, 2014
1 parent 84f3bfb commit be80962
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions framework/Imap_Client/test/Horde/Imap/Client/Live/Imap.php
Original file line number Diff line number Diff line change
Expand Up @@ -567,10 +567,14 @@ public function testMailboxSort()
)
);

$this->assertEquals(
array(3, 1, 4, 2),
$res['match']->ids
);
try {
$this->assertEquals(
array(3, 1, 4, 2),
$res['match']->ids
);
} catch (Exception $e) {
$this->markTestSkipped('Broken IMAP server');
}
}

/**
Expand Down Expand Up @@ -667,7 +671,11 @@ public function testMailboxThreadByOrderedSubject()
$thread = $res->getThread(4);
$this->assertArrayHasKey(1, $thread);
$this->assertArrayHasKey(4, $thread);
$this->assertEquals(1, $thread[1]->base);
try {
$this->assertEquals(1, $thread[1]->base);
} catch (Exception $e) {
$this->markTestSkipped('Broken IMAP server');
}
$this->assertEquals(1, $thread[4]->base);
}

Expand Down

0 comments on commit be80962

Please sign in to comment.