Author: fabien
Date: 2010-03-29 10:29:22 +0200 (Mon, 29 Mar 2010)
New Revision: 28844

Modified:
   branches/1.3/test/unit/i18n/extract/sfI18nPhpExtractorTest.php
   branches/1.4/test/unit/i18n/extract/sfI18nPhpExtractorTest.php
Log:
[1.3, 1.4] fixed  i18n extractor keeps acumulating texts when more than 1 
Heredoc string is used (refs #8166)

Modified: branches/1.3/test/unit/i18n/extract/sfI18nPhpExtractorTest.php
===================================================================
--- branches/1.3/test/unit/i18n/extract/sfI18nPhpExtractorTest.php      
2010-03-29 08:25:39 UTC (rev 28843)
+++ branches/1.3/test/unit/i18n/extract/sfI18nPhpExtractorTest.php      
2010-03-29 08:29:22 UTC (rev 28844)
@@ -73,6 +73,11 @@
 foo
 EOD
 );
+
+  echo __(<<<EOD
+bar
+EOD
+);
 EOF;
 
-$t->is(fix_linebreaks($e->extract($content)), array('foo'."\n"), '->extract() 
extracts strings from HEREDOC quoted strings');
+$t->is(fix_linebreaks($e->extract($content)), array("foo\n", "bar\n"), 
'->extract() extracts strings from HEREDOC quoted strings');

Modified: branches/1.4/test/unit/i18n/extract/sfI18nPhpExtractorTest.php
===================================================================
--- branches/1.4/test/unit/i18n/extract/sfI18nPhpExtractorTest.php      
2010-03-29 08:25:39 UTC (rev 28843)
+++ branches/1.4/test/unit/i18n/extract/sfI18nPhpExtractorTest.php      
2010-03-29 08:29:22 UTC (rev 28844)
@@ -73,6 +73,11 @@
 foo
 EOD
 );
+
+  echo __(<<<EOD
+bar
+EOD
+);
 EOF;
 
-$t->is(fix_linebreaks($e->extract($content)), array('foo'."\n"), '->extract() 
extracts strings from HEREDOC quoted strings');
+$t->is(fix_linebreaks($e->extract($content)), array("foo\n", "bar\n"), 
'->extract() extracts strings from HEREDOC quoted strings');

-- 
You received this message because you are subscribed to the Google Groups 
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/symfony-svn?hl=en.

Reply via email to