ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Sabre\DAV\ExceptionTest Class Reference
+ Inheritance diagram for Sabre\DAV\ExceptionTest:
+ Collaboration diagram for Sabre\DAV\ExceptionTest:

Public Member Functions

 testStatus ()
 
 testExceptionStatuses ()
 

Detailed Description

Definition at line 5 of file ExceptionTest.php.

Member Function Documentation

◆ testExceptionStatuses()

Sabre\DAV\ExceptionTest::testExceptionStatuses ( )

Definition at line 14 of file ExceptionTest.php.

References $c.

14  {
15 
16  $c = [
17  'Sabre\\DAV\\Exception\\NotAuthenticated' => 401,
18  'Sabre\\DAV\\Exception\\InsufficientStorage' => 507,
19  ];
20 
21  foreach ($c as $class => $status) {
22 
23  $obj = new $class();
24  $this->assertEquals($status, $obj->getHTTPCode());
25 
26  }
27 
28  }

◆ testStatus()

Sabre\DAV\ExceptionTest::testStatus ( )

Definition at line 7 of file ExceptionTest.php.

7  {
8 
9  $e = new Exception();
10  $this->assertEquals(500, $e->getHTTPCode());
11 
12  }

The documentation for this class was generated from the following file: