/** * Wraps the "splitLabel function" of the language object. * * @param string $reference: Reference/key of the label * @param bool $useHtmlSpecialChar: Convert special chars to HTML entities (default: FALSE) * @return string The label of the reference/key to be fetched */ protected function sL($reference, $useHtmlSpecialChar = false) { return $this->langObject->sL($reference, $useHtmlSpecialChar); }
/** * @test */ public function localizationReturnsUnchangedStringIfNotLocallangLabel() { $string = $this->getUniqueId(); $this->assertEquals($string, $this->subject->sL($string)); }
/** * @test */ public function localizationReturnsUnchangedStringIfNotLocallangLabel() { $string = uniqid(); $this->assertEquals($string, $this->fixture->sL($string)); }