3 class Sabre_DAV_ExceptionTest extends PHPUnit_Framework_TestCase {
5 function testStatus() {
7 $e = new Sabre_DAV_Exception();
8 $this->assertEquals(500,$e->getHTTPCode());
12 function testExceptionStatuses() {
15 'Sabre_DAV_Exception_NotAuthenticated' => 401,
16 'Sabre_DAV_Exception_InsufficientStorage' => 507,
19 foreach($c as $class=>$status) {
22 $this->assertEquals($status, $obj->getHTTPCode());