Proyectos de Subversion Moodle

Rev

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

Rev 11 Rev 1441
Línea 30... Línea 30...
30
 * @package    core_question
30
 * @package    core_question
31
 * @category   test
31
 * @category   test
32
 * @copyright  2009 The Open University
32
 * @copyright  2009 The Open University
33
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
33
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
34
 */
34
 */
35
class questionattemptiterator_test extends \advanced_testcase {
35
final class questionattemptiterator_test extends \advanced_testcase {
36
    private $quba;
36
    private $quba;
37
    private $qas = array();
37
    private $qas = array();
38
    private $iterator;
38
    private $iterator;
Línea 39... Línea 39...
39
 
39
 
-
 
40
    protected function setUp(): void {
40
    protected function setUp(): void {
41
        parent::setUp();
41
        $this->quba = question_engine::make_questions_usage_by_activity('unit_test',
42
        $this->quba = question_engine::make_questions_usage_by_activity('unit_test',
42
                \context_system::instance());
43
                \context_system::instance());
Línea 43... Línea 44...
43
        $this->quba->set_preferred_behaviour('deferredfeedback');
44
        $this->quba->set_preferred_behaviour('deferredfeedback');
Línea 52... Línea 53...
52
    }
53
    }
Línea 53... Línea 54...
53
 
54
 
54
    protected function tearDown(): void {
55
    protected function tearDown(): void {
55
        $this->quba = null;
56
        $this->quba = null;
-
 
57
        $this->iterator = null;
56
        $this->iterator = null;
58
        parent::tearDown();
Línea 57... Línea 59...
57
    }
59
    }
58
 
60
 
59
    public function test_foreach_loop(): void {
61
    public function test_foreach_loop(): void {