Unit tests for assAnswerErrorTextTest.  
 More...
| 
Protected Member Functions | 
|  | setUp () | 
Detailed Description
Member Function Documentation
  
  | 
        
          | assAnswerErrorTextTest::setUp | ( |  | ) |  |  | protected | 
 
Definition at line 15 of file assAnswerErrorTextTest.php.
        {
                if (defined('ILIAS_PHPUNIT_CONTEXT'))
                {
                        include_once("./Services/PHPUnit/classes/class.ilUnitUtil.php");
                        ilUnitUtil::performInitialisation();
                }
                else
                {
                        chdir( dirname( __FILE__ ) );
                        chdir('../../../');
                }
        }
 
 
      
        
          | assAnswerErrorTextTest::test_instantiateObjectFull | ( |  | ) |  | 
      
 
Definition at line 42 of file assAnswerErrorTextTest.php.
        {
                
                require_once './Modules/TestQuestionPool/classes/class.assAnswerErrorText.php';
                
                        'errortext',
                        'correcttext',
                        1
                );
                
                $this->assertTrue(TRUE);
        }
 
 
      
        
          | assAnswerErrorTextTest::test_instantiateObjectSimple | ( |  | ) |  | 
      
 
Definition at line 29 of file assAnswerErrorTextTest.php.
        {
                
                require_once './Modules/TestQuestionPool/classes/class.assAnswerErrorText.php';
                
                
                
                
                $this->assertTrue(TRUE);
        }
 
 
      
        
          | assAnswerErrorTextTest::test_setGetPoints_valid | ( |  | ) |  | 
      
 
Definition at line 58 of file assAnswerErrorTextTest.php.
        {
                
                
                require_once './Modules/TestQuestionPool/classes/class.assAnswerErrorText.php';
                $expected = 0.01;
                
                
                $instance->points = $expected;
                $actual = $instance->points;
                
                
                $this->assertEquals($actual, $expected);                
        }
 
 
      
        
          | assAnswerErrorTextTest::test_setGetTextCorrect | ( |  | ) |  | 
      
 
Definition at line 88 of file assAnswerErrorTextTest.php.
        {
                
                require_once './Modules/TestQuestionPool/classes/class.assAnswerErrorText.php';
                $expected = 'Correct text';
                
                $instance->text_correct = $expected;
                $actual = $instance->text_correct;
                
                $this->assertEquals($actual, $expected);
        }
 
 
      
        
          | assAnswerErrorTextTest::test_setGetTextWrong_valid | ( |  | ) |  | 
      
 
Definition at line 103 of file assAnswerErrorTextTest.php.
        {
                
                require_once './Modules/TestQuestionPool/classes/class.assAnswerErrorText.php';
                $expected = 'Errortext';
                
                $instance->text_wrong = $expected;
                $actual = $instance->text_wrong;
                
                $this->assertEquals($actual, $expected);
        }
 
 
      
        
          | assAnswerErrorTextTest::test_setGetUnknown | ( |  | ) |  | 
      
 
Definition at line 133 of file assAnswerErrorTextTest.php.
        {
                
                require_once './Modules/TestQuestionPool/classes/class.assAnswerErrorText.php';
                $expected = null;
                
                $instance->undefined123 = 'No expectations';
                $actual = $instance->undefined123;
                
                $this->assertEquals($expected, $actual);        
        }
 
 
      
        
          | assAnswerErrorTextTest::test_setPoints_invalid | ( |  | ) |  | 
      
 
Definition at line 74 of file assAnswerErrorTextTest.php.
        {
                
                require_once './Modules/TestQuestionPool/classes/class.assAnswerErrorText.php';
                $expected = 'hokum';
                
                $instance->points = $expected;
                $actual = $instance->points;
                
                $this->assertEquals($expected, $actual);
        }
 
 
      
        
          | assAnswerErrorTextTest::test_setTextWrong_invalid | ( |  | ) |  | 
      
 
Definition at line 118 of file assAnswerErrorTextTest.php.
        {
                
                require_once './Modules/TestQuestionPool/classes/class.assAnswerErrorText.php';
                $expected = '';
                
                $instance->text_wrong = $expected;
                $actual = $instance->text_wrong;
                
                
                $this->assertEquals($expected, $actual);
        }
 
 
Field Documentation
  
  | 
        
          | assAnswerErrorTextTest::$backupGlobals = FALSE |  | protected | 
 
 
The documentation for this class was generated from the following file: