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