Exemple #1
0
 public function testGetPattern2ReturnMinusOperator()
 {
     $captcha = new Captcha();
     $captcha->setPattern(2);
     $this->assertEquals('-', $captcha->getOperator());
 }
 function testResultOperatorShouldBePlus()
 {
     $captcha = new Captcha(1, 1, 1, 1);
     $operator = $captcha->getOperator();
     $this->assertEquals("+", $operator->toString());
 }