public function testTexts()
 {
     $field = aTextField()->withTracker(aTracker()->withProject(mock('Project'))->build())->build();
     $text = new Tracker_Artifact_ChangesetValue_Text(111, $field, false, 'Problems during installation', 'text');
     $this->assertEqual($text->getText(), 'Problems during installation');
     $this->assertEqual($text->getSoapValue($this->user), array('value' => 'Problems during installation'));
     $this->assertEqual($text->getValue(), 'Problems during installation');
 }
 function testTexts()
 {
     $field = new MockTracker_FormElement_Field_Text();
     $text = new Tracker_Artifact_ChangesetValue_Text(111, $field, false, 'Problems during installation');
     $this->assertEqual($text->getText(), 'Problems during installation');
     $this->assertEqual($text->getSoapValue(), 'Problems during installation');
     $this->assertEqual($text->getValue(), 'Problems during installation');
 }
 /**
  * Get the diff between this changeset value and the one passed in param
  *
  * @param Tracker_Artifact_ChangesetValue_Text $changeset_value the changeset value to compare
  * @param PFUser                          $user            The user or null
  *
  * @return string The difference between another $changeset_value, false if no differences
  */
 public function diff($changeset_value, $format = 'html', PFUser $user = null)
 {
     $previous = explode(PHP_EOL, $changeset_value->getText());
     $next = explode(PHP_EOL, $this->getText());
     return $this->fetchDiff($previous, $next, $format);
 }