Proyectos de Subversion Moodle

Rev

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

Rev 11 Rev 1441
Línea 24... Línea 24...
24
 * @copyright  2013 Andrew Nicols
24
 * @copyright  2013 Andrew Nicols
25
 * @license    http://www.gnu.org/copyleft/gpl.html GNU Public License
25
 * @license    http://www.gnu.org/copyleft/gpl.html GNU Public License
26
 * @covers ::ajax_capture_output
26
 * @covers ::ajax_capture_output
27
 * @covers ::ajax_check_captured_output
27
 * @covers ::ajax_check_captured_output
28
 */
28
 */
29
class ajaxlib_test extends \advanced_testcase {
29
final class ajaxlib_test extends \advanced_testcase {
30
    /** @var string Original error log */
30
    /** @var string Original error log */
31
    protected $oldlog;
31
    protected $oldlog;
Línea 32... Línea 32...
32
 
32
 
33
    protected function setUp(): void {
33
    protected function setUp(): void {
Línea 114... Línea 114...
114
        set_debugging(DEBUG_NORMAL);
114
        set_debugging(DEBUG_NORMAL);
115
        $this->helper_test_dirty_output();
115
        $this->helper_test_dirty_output();
116
    }
116
    }
Línea 117... Línea 117...
117
 
117
 
118
    public function test_output_capture_error_debug_all(): void {
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 throw an exceptions.
120
        set_debugging(DEBUG_ALL);
120
        set_debugging(DEBUG_ALL);
121
        $this->helper_test_dirty_output();
121
        $this->helper_test_dirty_output(true);
Línea 122... Línea 122...
122
    }
122
    }
123
 
123
 
124
    public function test_output_capture_error_debugdeveloper(): void {
124
    public function test_output_capture_error_debugdeveloper(): void {