This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.  
 More...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. 
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Unit tests
- Author
 - Maximilian Becker mbeck.nosp@m.er@d.nosp@m.ataba.nosp@m.y.de 
 
Definition at line 26 of file assAnswerBinaryStateTest.php.
 
◆ setUp()
  
  
      
        
          | assAnswerBinaryStateTest::setUp  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
◆ test_instantiateObject_shouldReturnInstance()
      
        
          | assAnswerBinaryStateTest::test_instantiateObject_shouldReturnInstance  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 36 of file assAnswerBinaryStateTest.php.
   36                                                                 : void
   37    {
   38        
   39        require_once './Modules/TestQuestionPool/classes/class.assAnswerBinaryState.php';
   40 
   41        
   43 
   44        $this->assertInstanceOf('ASS_AnswerBinaryState', $instance);
   45    }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
 
 
 
◆ test_isStateChecked_shouldReturnActualState()
      
        
          | assAnswerBinaryStateTest::test_isStateChecked_shouldReturnActualState  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 62 of file assAnswerBinaryStateTest.php.
   62                                                                 : void
   63    {
   64        
   65        require_once './Modules/TestQuestionPool/classes/class.assAnswerBinaryState.php';
   67        $expected = 1;
   68 
   69        
   70        $instance->setState($expected);
   71        $actual = $instance->isStateChecked();
   72 
   73        
   74        $this->assertEquals($expected, $actual);
   75    }
 
 
 
◆ test_isStateSet_shouldReturnActualState()
      
        
          | assAnswerBinaryStateTest::test_isStateSet_shouldReturnActualState  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 77 of file assAnswerBinaryStateTest.php.
   77                                                             : void
   78    {
   79        
   80        require_once './Modules/TestQuestionPool/classes/class.assAnswerBinaryState.php';
   82        $expected = 1;
   83 
   84        
   85        $instance->setState($expected);
   86        $actual = $instance->isStateSet();
   87 
   88        
   89        $this->assertEquals($expected, $actual);
   90    }
 
 
 
◆ test_isStateUnchecked_shouldReturnActualState()
      
        
          | assAnswerBinaryStateTest::test_isStateUnchecked_shouldReturnActualState  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 107 of file assAnswerBinaryStateTest.php.
  107                                                                   : void
  108    {
  109        
  110        require_once './Modules/TestQuestionPool/classes/class.assAnswerBinaryState.php';
  112        $expected = 1;
  113 
  114        
  115        $instance->setState($expected);
  116        $actual = !$instance->isStateUnchecked();
  117 
  118        
  119        $this->assertEquals($expected, $actual);
  120    }
 
 
 
◆ test_isStateUnset_shouldReturnActualState()
      
        
          | assAnswerBinaryStateTest::test_isStateUnset_shouldReturnActualState  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 92 of file assAnswerBinaryStateTest.php.
   92                                                               : void
   93    {
   94        
   95        require_once './Modules/TestQuestionPool/classes/class.assAnswerBinaryState.php';
   97        $expected = 1;
   98 
   99        
  100        $instance->setState($expected);
  101        $actual = !$instance->isStateUnset();
  102 
  103        
  104        $this->assertEquals($expected, $actual);
  105    }
 
 
 
◆ test_setChecked_shouldAlterState()
      
        
          | assAnswerBinaryStateTest::test_setChecked_shouldAlterState  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 122 of file assAnswerBinaryStateTest.php.
  122                                                      : void
  123    {
  124        
  125        require_once './Modules/TestQuestionPool/classes/class.assAnswerBinaryState.php';
  127        $expected = 0;
  128        $instance->setState($expected);
  129 
  130        
  131        $instance->setChecked();
  132        $actual = $instance->isStateUnchecked();
  133 
  134        
  135        $this->assertEquals($expected, $actual);
  136    }
 
 
 
◆ test_setGetState_shouldReturnUnchangedState()
      
        
          | assAnswerBinaryStateTest::test_setGetState_shouldReturnUnchangedState  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 47 of file assAnswerBinaryStateTest.php.
   47                                                                 : void
   48    {
   49        
   50        require_once './Modules/TestQuestionPool/classes/class.assAnswerBinaryState.php';
   52        $expected = 1;
   53 
   54        
   55        $instance->setState($expected);
   56        $actual = $instance->getState();
   57 
   58        
   59        $this->assertEquals($expected, $actual);
   60    }
 
 
 
◆ test_setSet_shouldAlterState()
      
        
          | assAnswerBinaryStateTest::test_setSet_shouldAlterState  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 154 of file assAnswerBinaryStateTest.php.
  154                                                  : void
  155    {
  156        
  157        require_once './Modules/TestQuestionPool/classes/class.assAnswerBinaryState.php';
  159        $expected = 0;
  160        $instance->setState($expected);
  161 
  162        
  163        $instance->setSet();
  164        $actual = $instance->isStateUnchecked();
  165 
  166        
  167        $this->assertEquals($expected, $actual);
  168    }
 
 
 
◆ test_setUnchecked_shouldAlterState()
      
        
          | assAnswerBinaryStateTest::test_setUnchecked_shouldAlterState  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 138 of file assAnswerBinaryStateTest.php.
  138                                                        : void
  139    {
  140        
  141        require_once './Modules/TestQuestionPool/classes/class.assAnswerBinaryState.php';
  143        $expected = 1;
  144        $instance->setState($expected);
  145 
  146        
  147        $instance->setUnchecked();
  148        $actual = $instance->isStateUnchecked();
  149 
  150        
  151        $this->assertEquals($expected, $actual);
  152    }
 
 
 
◆ test_setUnset_shouldAlterState()
      
        
          | assAnswerBinaryStateTest::test_setUnset_shouldAlterState  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 170 of file assAnswerBinaryStateTest.php.
  170                                                    : void
  171    {
  172        
  173        require_once './Modules/TestQuestionPool/classes/class.assAnswerBinaryState.php';
  175        $expected = 1;
  176        $instance->setState($expected);
  177 
  178        
  179        $instance->setUnset();
  180        $actual = $instance->isStateUnchecked();
  181 
  182        
  183        $this->assertEquals($expected, $actual);
  184    }
 
 
 
◆ $backupGlobals
  
  
      
        
          | assAnswerBinaryStateTest::$backupGlobals = false | 
         
       
   | 
  
protected   | 
  
 
 
The documentation for this class was generated from the following file: