function testNotFound() { try { Controller::NotFound(); $this->fail('Выбрасывает исключение'); } catch (Exception $e) { $this->assertFalse($e->isRedirect()); $this->assertEquals(Exception::NOT_FOUND, $e->getCode(), 'Код ошибки'); } }