Skip to content
Permalink
Browse files

Add unit tests for issue #6542

  • Loading branch information...
PGBI committed May 12, 2015
1 parent 22976db commit c4c3cf71ba19324a1f8dc84a564b8dbcdd7cd255
@@ -108,8 +108,14 @@ public function testExecute()
$this->assertContains('msgid "double \\"quoted\\""', $result, 'Strings with quotes not handled correctly');
$this->assertContains("msgid \"single 'quoted'\"", $result, 'Strings with quotes not handled correctly');
$pattern = '/\#: (\\\\|\/)extract\.ctp:31\n';
$pattern .= 'msgctxt "mail"/';
$pattern = '/\#: (\\\\|\/)extract\.ctp:\d+\n';
$pattern .= 'msgctxt "mail"\n';
$pattern .= 'msgid "letter"/';
$this->assertRegExp($pattern, $result);
$pattern = '/\#: (\\\\|\/)extract\.ctp:\d+\n';
$pattern .= 'msgctxt "alphabet"\n';
$pattern .= 'msgid "letter"/';
$this->assertRegExp($pattern, $result);
// extract.ctp - reading the domain.pot
@@ -29,3 +29,6 @@ __('Hot features!'
// Context
echo __x('mail', 'letter');
// Duplicated message with different context
echo __x('alphabet', 'letter');

0 comments on commit c4c3cf7

Please sign in to comment.
You can’t perform that action at this time.