Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F1819927
ExceptionTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Size
568 B
Subscribers
None
ExceptionTest.php
View Options
<?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
Details
Attached
Mime Type
text/x-php
Expires
Sat, Dec 21, 2:19 PM (2 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
914195
Default Alt Text
ExceptionTest.php (568 B)
Attached To
rDAVCAL DokuWiki DAVCal PlugIn
Event Timeline
Log In to Comment