예제 #1
0
 public function test_setSet_shouldAlterState()
 {
     // Arrange
     require_once './Modules/TestQuestionPool/classes/class.assAnswerBinaryState.php';
     $instance = new ASS_AnswerBinaryState();
     $expected = 0;
     $instance->setState($expected);
     // Act
     $instance->setSet();
     $actual = $instance->isStateUnchecked();
     // Assert
     $this->assertEquals($expected, $actual);
 }