Пример #1
0
 /**
  * This test checks the Integer's add() method.
  *
  * @return void
  */
 public function testAdd()
 {
     // initialize a new Integer instance
     $int = new Integer(10);
     $int->add(new Integer(22));
     // check the value
     $this->assertEquals(32, $int->intValue());
 }