Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 11
Línea 77... Línea 77...
77
            $result = ajax_check_captured_output();
77
            $result = ajax_check_captured_output();
78
            $this->assertEquals($result, $content);
78
            $this->assertEquals($result, $content);
79
        }
79
        }
80
    }
80
    }
Línea 81... Línea 81...
81
 
81
 
82
    public function test_output_capture_normal_debug_none() {
82
    public function test_output_capture_normal_debug_none(): void {
83
        // In normal conditions, and with DEBUG_NONE set, we should not receive any output or throw any exceptions.
83
        // In normal conditions, and with DEBUG_NONE set, we should not receive any output or throw any exceptions.
84
        set_debugging(DEBUG_NONE);
84
        set_debugging(DEBUG_NONE);
85
        $this->helper_test_clean_output();
85
        $this->helper_test_clean_output();
Línea 86... Línea 86...
86
    }
86
    }
87
 
87
 
88
    public function test_output_capture_normal_debug_normal() {
88
    public function test_output_capture_normal_debug_normal(): void {
89
        // In normal conditions, and with DEBUG_NORMAL set, we should not receive any output or throw any exceptions.
89
        // In normal conditions, and with DEBUG_NORMAL set, we should not receive any output or throw any exceptions.
90
        set_debugging(DEBUG_NORMAL);
90
        set_debugging(DEBUG_NORMAL);
Línea 91... Línea 91...
91
        $this->helper_test_clean_output();
91
        $this->helper_test_clean_output();
92
    }
92
    }
93
 
93
 
94
    public function test_output_capture_normal_debug_all() {
94
    public function test_output_capture_normal_debug_all(): void {
95
        // In normal conditions, and with DEBUG_ALL set, we should not receive any output or throw any exceptions.
95
        // In normal conditions, and with DEBUG_ALL set, we should not receive any output or throw any exceptions.
Línea 96... Línea 96...
96
        set_debugging(DEBUG_ALL);
96
        set_debugging(DEBUG_ALL);
97
        $this->helper_test_clean_output();
97
        $this->helper_test_clean_output();
98
    }
98
    }
99
 
99
 
100
    public function test_output_capture_normal_debugdeveloper() {
100
    public function test_output_capture_normal_debugdeveloper(): void {
Línea 101... Línea 101...
101
        // In normal conditions, and with DEBUG_DEVELOPER set, we should not receive any output or throw any exceptions.
101
        // In normal conditions, and with DEBUG_DEVELOPER set, we should not receive any output or throw any exceptions.
102
        set_debugging(DEBUG_DEVELOPER);
102
        set_debugging(DEBUG_DEVELOPER);
103
        $this->helper_test_clean_output();
103
        $this->helper_test_clean_output();
104
    }
104
    }
105
 
105
 
Línea 106... Línea 106...
106
    public function test_output_capture_error_debug_none() {
106
    public function test_output_capture_error_debug_none(): void {
107
        // With DEBUG_NONE set, we should not throw any exception, but the output will be returned.
107
        // With DEBUG_NONE set, we should not throw any exception, but the output will be returned.
108
        set_debugging(DEBUG_NONE);
108
        set_debugging(DEBUG_NONE);
109
        $this->helper_test_dirty_output();
109
        $this->helper_test_dirty_output();
110
    }
110
    }
Línea 111... Línea 111...
111
 
111
 
112
    public function test_output_capture_error_debug_normal() {
112
    public function test_output_capture_error_debug_normal(): void {
113
        // With DEBUG_NORMAL set, we should not throw any exception, but the output will be returned.
113
        // With DEBUG_NORMAL set, we should not throw any exception, but the output will be returned.
114
        set_debugging(DEBUG_NORMAL);
114
        set_debugging(DEBUG_NORMAL);
115
        $this->helper_test_dirty_output();
115
        $this->helper_test_dirty_output();
Línea 116... Línea 116...
116
    }
116
    }
117
 
117
 
118
    public function test_output_capture_error_debug_all() {
118
    public function test_output_capture_error_debug_all(): void {
119
        // In error conditions, and with DEBUG_ALL set, we should not receive any output or throw any exceptions.
119
        // In error conditions, and with DEBUG_ALL set, we should not receive any output or throw any exceptions.
120
        set_debugging(DEBUG_ALL);
120
        set_debugging(DEBUG_ALL);