Page MenuHomePhabricator

ExceptionTest.php
No OneTemporary

ExceptionTest.php

<?php
namespace Sabre\DAV;
class ExceptionTest extends \PHPUnit_Framework_TestCase {
function testStatus() {
$e = new Exception();
$this->assertEquals(500,$e->getHTTPCode());
}
function testExceptionStatuses() {
$c = array(
'Sabre\\DAV\\Exception\\NotAuthenticated' => 401,
'Sabre\\DAV\\Exception\\InsufficientStorage' => 507,
);
foreach($c as $class=>$status) {
$obj = new $class();
$this->assertEquals($status, $obj->getHTTPCode());
}
}
}

File Metadata

Mime Type
text/x-php
Expires
Tue, Jan 7, 7:53 PM (16 h, 55 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
914195
Default Alt Text
ExceptionTest.php (568 B)

Event Timeline