Merge pull request #1823 from tractorcow/3.1-htmltext-testcase

Updated HTMLTextTest to test for correct testFirstSentence
This commit is contained in:
Will Rossiter 2013-04-30 22:46:45 -07:00
commit 131e21d777

View File

@ -103,6 +103,8 @@ class HTMLTextTest extends SapphireTest {
'<h1>should ignore</h1><p>First Mr. sentence. Second sentence.</p>' => 'First Mr. sentence.',
"<h1>should ignore</h1><p>Sentence with {$many}words. Second sentence.</p>"
=> "Sentence with {$many}words.",
'<p>This classic picture book features a repetitive format that lends itself to audience interaction.&nbsp; Illustrator Eric Carle submitted new, bolder artwork for the 25th anniversary edition.</p>'
=> 'This classic picture book features a repetitive format that lends itself to audience interaction.'
);
foreach($cases as $orig => $match) {