Пример #1
0
 public function testSetLeftOperandPattern2With7ReturnSeven()
 {
     $captcha = new Captcha();
     $captcha->setPattern(2);
     $captcha->setLeftOperand(7);
     $this->assertEquals('seven', $captcha->getLeftOperand());
 }
Пример #2
0
 function testLeftOperandShouldBe1()
 {
     $captcha = new Captcha(2, 1, 1, 1);
     $leftOperand = $captcha->getLeftOperand();
     $this->assertEquals("1", $leftOperand->toString());
 }