/** * This test checks the Integer's subtract() method. * * @return void */ public function testSubtract() { // initialize a new Integer instance $int = new Integer(10); $int->subtract(new Integer(32)); // check the value $this->assertEquals(-22, $int->intValue()); }