public function testIntegers()
 {
     $integer = new Tracker_Artifact_ChangesetValue_Integer(111, $this->field, false, 42);
     $this->assertEqual($integer->getInteger(), 42);
     $this->assertNotIdentical($integer->getInteger(), '42');
     $this->assertEqual($integer->getSoapValue($this->user), array('value' => '42'));
     $this->assertIdentical($integer->getSoapValue($this->user), array('value' => '42'));
     $this->assertIdentical($integer->getValue(), 42);
     $string_int = new Tracker_Artifact_ChangesetValue_Integer(111, $this->field, false, '55');
     $this->assertEqual($string_int->getInteger(), 55);
     $this->assertEqual($string_int->getInteger(), '55');
     $this->assertNotIdentical($string_int->getInteger(), '55');
     $this->assertIdentical($string_int->getSoapValue($this->user), array('value' => '55'));
     $this->assertIdentical($string_int->getValue(), 55);
     $null_int = new Tracker_Artifact_ChangesetValue_Integer(111, $this->field, false, null);
     $this->assertNull($null_int->getInteger());
     $this->assertEqual($null_int->getSoapValue($this->user), array('value' => ''));
     $this->assertIdentical($null_int->getSoapValue($this->user), array('value' => ''));
     $this->assertNull($null_int->getValue());
 }
 function testIntegers()
 {
     $field = new MockTracker_FormElement_Field_Integer();
     $integer = new Tracker_Artifact_ChangesetValue_Integer(111, $field, false, 42);
     $this->assertEqual($integer->getInteger(), 42);
     $this->assertNotIdentical($integer->getInteger(), '42');
     $this->assertEqual($integer->getSoapValue(), '42');
     $this->assertIdentical($integer->getSoapValue(), '42');
     $this->assertIdentical($integer->getValue(), 42);
     $string_int = new Tracker_Artifact_ChangesetValue_Integer(111, $field, false, '55');
     $this->assertEqual($string_int->getInteger(), 55);
     $this->assertEqual($string_int->getInteger(), '55');
     $this->assertNotIdentical($string_int->getInteger(), '55');
     $this->assertIdentical($string_int->getSoapValue(), '55');
     $this->assertIdentical($string_int->getValue(), 55);
     $null_int = new Tracker_Artifact_ChangesetValue_Integer(111, $field, false, null);
     $this->assertNull($null_int->getInteger());
     $this->assertEqual($null_int->getSoapValue(), '');
     $this->assertIdentical($null_int->getSoapValue(), '');
     $this->assertNull($null_int->getValue());
 }