Beispiel #1
0
 /**
  * Normalizes and translates (if needed) labels in the given value.
  *
  * @param mixed       $value
  * @param string|null $domain
  *
  * @return mixed
  */
 public function text($value, $domain = null)
 {
     return $this->textHelper->processText($value, $domain);
 }
Beispiel #2
0
 /**
  * @dataProvider processTextDataProvider
  */
 public function testProcessText($value, $expected, $domain = null)
 {
     $result = $this->helper->processText($value, $domain);
     $this->assertSame($expected, $result);
 }