mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #1823 from tractorcow/3.1-htmltext-testcase
Updated HTMLTextTest to test for correct testFirstSentence
This commit is contained in:
commit
131e21d777
@ -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. 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) {
|
||||
|
Loading…
Reference in New Issue
Block a user