public function testMultilines() { $string = new String('This is a very long string, to test how PoeditDumper will dump it, using multiline syntax. It should be displayed on three different lines, with 78 chars maximum each.', ''); $this->assertEquals($string->__toString(), <<<EOT msgid "" "This is a very long string, to test how PoeditDumper will dump it, using " "multiline syntax. It should be displayed on three different lines, with 78 " "chars maximum each." msgstr "" EOT ); }
public function testStringWithCommentsAndFuzzy() { $string = new String('Reference text', 'Translated value in whatever languague you want', array(), array(), array('../../first/file.js:85', '../../second/file.html:42'), array('fuzzy')); $this->assertEquals($string->__toString(), <<<EOT #: ../../first/file.js:85 #: ../../second/file.html:42 #, fuzzy msgid "Reference text" msgstr "Translated value in whatever languague you want" EOT ); }