Révision 30d5b9c5
Ajouté par Mathieu Schiano Di Schiabica il y a environ 8 ans
drupal7/modules/simpletest/tests/mail.test | ||
---|---|---|
441 | 441 |
* <CRLF> is 1000 characters." |
442 | 442 |
*/ |
443 | 443 |
function testVeryLongLineWrap() { |
444 |
$input = 'Drupal<br /><p>' . str_repeat('x', 2100) . '</><br />Drupal'; |
|
444 |
$input = 'Drupal<br /><p>' . str_repeat('x', 2100) . '</p><br />Drupal';
|
|
445 | 445 |
$output = drupal_html_to_text($input); |
446 | 446 |
// This awkward construct comes from includes/mail.inc lines 8-13. |
447 | 447 |
$eol = variable_get('mail_line_endings', MAIL_LINE_ENDINGS); |
... | ... | |
455 | 455 |
$maximum_line_length = max($maximum_line_length, strlen($line . $eol)); |
456 | 456 |
} |
457 | 457 |
$verbose = 'Maximum line length found was ' . $maximum_line_length . ' octets.'; |
458 |
// @todo This should assert that $maximum_line_length <= 1000. |
|
459 |
$this->pass($verbose); |
|
458 |
$this->assertTrue($maximum_line_length <= 1000, $verbose); |
|
460 | 459 |
} |
461 | 460 |
} |
Formats disponibles : Unified diff
Update to 7.42