getTargetByTransUnitId() public method

Id is compared with "id" attribute of "trans-unit" tag (see XLIFF specification for details).
public getTargetByTransUnitId ( string $transUnitId, integer $pluralFormIndex ) : mixed
$transUnitId string The "id" attribute of "trans-unit" tag in XLIFF
$pluralFormIndex integer Index of plural form to use (starts with 0)
return mixed Translated label or FALSE on failure
 /**
  * @test
  */
 public function sourceIsReturnedWhenIdProvidedAndSourceEqualsTargetLanguage()
 {
     $this->model = new I18n\Xliff\XliffModel('foo', new I18n\Locale('en_US'));
     $this->model->injectCache($this->mockCache);
     $this->model->injectParser($this->mockXliffParser);
     $this->model->initializeObject();
     $result = $this->model->getTargetByTransUnitId('key3');
     $this->assertEquals('No target', $result);
 }