SimpleSAML\Locale\Translate::noop PHP Method

noop() public static method

Mark a string for translation without translating it.
public static noop ( string $tag ) : string
$tag string A tag name to mark for translation.
return string The tag, unchanged.
    public static function noop($tag)
    {
        return $tag;
    }

Usage Example

 /**
  * Test SimpleSAML\Locale\Translate::noop().
  */
 public function testNoop()
 {
     // test default
     $c = \SimpleSAML_Configuration::loadFromArray(array());
     $t = new Translate($c);
     $testString = 'Blablabla';
     $this->assertEquals($testString, $t->noop($testString));
 }
All Usage Examples Of SimpleSAML\Locale\Translate::noop