/** * Test setNumeral() by setting it to a new value, retrieving * it again and verifying that the retrieved and the set ones * are the same. */ public function testSetNumeral() { $num = $this->nc->getNumeral(); $cap = new Text_CAPTCHA_Numeral(); $this->assertNotEquals($cap, $num); $this->nc->setNumeral($cap); $num2 = $this->nc->getNumeral(); $this->assertEquals($cap, $num2); }