[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/question/engine/tests/ -> questionattempt_with_steps_test.php (summary)

This file contains tests for the question_attempt class. Action methods like start, process_action and finish are assumed to be tested by walkthrough tests in the various behaviours.

Copyright: 2009 The Open University
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 188 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 2 files
 question/engine/lib.php
 question/engine/tests/helpers.php

Defines 1 class

question_attempt_with_steps_test:: (25 methods):
  setUp()
  tearDown()
  test_get_step_before_start()
  test_get_step_at_start()
  test_get_step_at_end()
  test_get_step_past_end()
  test_get_num_steps()
  test_get_last_step()
  test_get_last_qt_var_there1()
  test_get_last_qt_var_there2()
  test_get_last_qt_var_missing()
  test_get_last_qt_var_missing_default()
  test_get_last_behaviour_var_missing()
  test_get_last_behaviour_var_there()
  test_get_state_gets_state_of_last()
  test_get_mark_gets_mark_of_last()
  test_get_fraction_gets_fraction_of_last()
  test_get_fraction_returns_null_if_none()
  test_format_mark()
  test_format_max_mark()
  test_get_min_fraction()
  test_cannot_get_min_fraction_before_start()
  test_get_max_fraction()
  test_cannot_get_max_fraction_before_start()
  test_validate_manual_mark()


Class: question_attempt_with_steps_test  - X-Ref

These tests use a standard fixture of a {@link question_attempt} with three steps.

setUp()   X-Ref
No description

tearDown()   X-Ref
No description

test_get_step_before_start()   X-Ref


test_get_step_at_start()   X-Ref
No description

test_get_step_at_end()   X-Ref
No description

test_get_step_past_end()   X-Ref


test_get_num_steps()   X-Ref
No description

test_get_last_step()   X-Ref
No description

test_get_last_qt_var_there1()   X-Ref
No description

test_get_last_qt_var_there2()   X-Ref
No description

test_get_last_qt_var_missing()   X-Ref
No description

test_get_last_qt_var_missing_default()   X-Ref
No description

test_get_last_behaviour_var_missing()   X-Ref
No description

test_get_last_behaviour_var_there()   X-Ref
No description

test_get_state_gets_state_of_last()   X-Ref
No description

test_get_mark_gets_mark_of_last()   X-Ref
No description

test_get_fraction_gets_fraction_of_last()   X-Ref
No description

test_get_fraction_returns_null_if_none()   X-Ref
No description

test_format_mark()   X-Ref
No description

test_format_max_mark()   X-Ref
No description

test_get_min_fraction()   X-Ref
No description

test_cannot_get_min_fraction_before_start()   X-Ref
No description

test_get_max_fraction()   X-Ref
No description

test_cannot_get_max_fraction_before_start()   X-Ref
No description

test_validate_manual_mark()   X-Ref
No description



Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1