fill_blanks.class.test.php 988 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. class TestFillBlanksClass extends UnitTestCase {
  3. public $fFillBlanks;
  4. public function TestFillBlanksClass() {
  5. $this->UnitTestCase('');
  6. }
  7. public function setUp() {
  8. $this->fFillBlanks = new FillBlanks();
  9. }
  10. public function tearDown() {
  11. $this->fFillBlanks = null;
  12. }
  13. /**
  14. * function which redifines Question::createAnswersForm
  15. * @param the formvalidator instance
  16. */
  17. /*
  18. function testcreateAnswersForm() {
  19. $form = new FormValidator('introduction_text');
  20. $res = $this->fFillBlanks->createAnswersForm($form);
  21. $this->assertTrue(is_null($res));
  22. var_dump($res);
  23. }*/
  24. /**
  25. * abstract function which creates the form to create / edit the answers of the question
  26. * @param the formvalidator instance
  27. */
  28. /*
  29. function testprocessAnswersCreation() {
  30. global $charset;
  31. $form = new FormValidator('introduction_text');
  32. $res = $this->fFillBlanks->processAnswersCreation($form);
  33. $this->assertTrue(is_null($res));
  34. var_dump($res);
  35. }*/
  36. }
  37. ?>