Changeset 59515 for trunk/tests/phpunit/tests/formatting/convertSmilies.php
- Timestamp:
- 12/14/2024 11:51:09 PM (16 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/formatting/convertSmilies.php
r57987 r59515 394 394 return $wpsmiliestrans; 395 395 } 396 397 398 /** 399 * Tests that the function does not throw a fatal error from count() 400 * when preg_split() fails on large input. 401 * 402 * @ticket 51019 403 */ 404 public function test_smilies_with_large_text_input() { 405 $text = '<p><img alt="" src="data:image/png;base64,' . str_repeat( 'iVBORw0KGgoAAAAN', 65536 ) . '="></p> :)'; 406 $this->assertStringContainsString( "\xf0\x9f\x99\x82", convert_smilies( $text ) ); 407 } 396 408 }
Note: See TracChangeset
for help on using the changeset viewer.