Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 26... Línea 26...
26
class progress_display_test extends \advanced_testcase {
26
class progress_display_test extends \advanced_testcase {
Línea 27... Línea 27...
27
 
27
 
28
    /**
28
    /**
29
     * Test basic function of progress_display, updating status and outputting wibbler.
29
     * Test basic function of progress_display, updating status and outputting wibbler.
30
     */
30
     */
31
    public function test_progress_display_update() {
31
    public function test_progress_display_update(): void {
32
        ob_start();
32
        ob_start();
33
        $progress = new core_mock_progress_display();
33
        $progress = new core_mock_progress_display();
34
        $progress->start_progress('');
34
        $progress->start_progress('');
35
        $this->assertEquals(1, $progress->get_current_state());
35
        $this->assertEquals(1, $progress->get_current_state());
Línea 48... Línea 48...
48
    }
48
    }
Línea 49... Línea 49...
49
 
49
 
50
    /**
50
    /**
51
     * Test wibbler states. Wibbler should reverse direction at the start and end of its sequence.
51
     * Test wibbler states. Wibbler should reverse direction at the start and end of its sequence.
52
     */
52
     */
53
    public function test_progress_display_wibbler() {
53
    public function test_progress_display_wibbler(): void {
54
        ob_start();
54
        ob_start();
55
        $progress = new core_mock_progress_display();
55
        $progress = new core_mock_progress_display();
56
        $progress->start_progress('');
56
        $progress->start_progress('');