public function test_setGetPointsChecked() { // Arrange require_once './Modules/TestQuestionPool/classes/class.assAnswerMultipleResponse.php'; $instance = new ASS_AnswerMultipleResponse(); $expected = 2; // Act $instance->setPointsChecked($expected); $actual = $instance->getPointsChecked(); // Assert $this->assertEquals($expected, $actual); }
/** * ASS_AnswerMultipleResponse constructor * * The constructor takes possible arguments an creates an instance of the ASS_AnswerMultipleResponse object. * * @param string $answertext A string defining the answer text * @param double $points The number of points given for the selected answer * @param integer $order A nonnegative value representing a possible display or sort order * @param double $points_unchecked The points when the answer is not checked * @param string $a_image The image filename * @access public */ function ASS_AnswerMultipleResponseImage($answertext = "", $points_checked = 0.0, $order = 0, $points_unchecked = 0, $a_image = "", $id = -1) { parent::__construct($answertext, $points_checked, $order, $points_unchecked, $id); $this->image = $a_image; }
/** * ASS_AnswerMultipleResponse constructor * * The constructor takes possible arguments an creates an instance of the ASS_AnswerMultipleResponse object. * * @param string $answertext A string defining the answer text * @param double $points The number of points given for the selected answer * @param integer $order A nonnegative value representing a possible display or sort order * @param double $points_unchecked The points when the answer is not checked * @param string $a_image The image filename * @access public */ function __construct($answertext = "", $points_checked = 0.0, $order = 0, $points_unchecked = 0, $a_image = "", $id = -1) { parent::__construct($answertext, $points_checked, $order, $points_unchecked, $id); $this->image = $a_image; }