Example #1
0
 function testServerError()
 {
     try {
         Controller::ServerError();
         $this->fail('Выбрасывает исключение');
     } catch (Exception $e) {
         $this->assertEquals(Exception::SERVER_ERROR, $e->getCode(), 'Код ошибки');
     }
 }