public function _e($str, $params = null) { echo $this->translate($str, $params); }
public function testE() { $l = new I18n(); ob_start(); $l->_e('This field is required.'); $output = ob_get_clean(); $this->assertEquals('Ce champ est obligatoire.', $output); }