Changeset 52010 for trunk/tests/phpunit/tests/formatting/escHtml.php
- Timestamp:
- 11/04/2021 03:22:47 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/formatting/escHtml.php
r51623 r52010 5 5 */ 6 6 class Tests_Formatting_EscHtml extends WP_UnitTestCase { 7 function test_esc_html_basics() {7 public function test_esc_html_basics() { 8 8 // Simple string. 9 9 $html = 'The quick brown fox.'; … … 21 21 } 22 22 23 function test_escapes_ampersands() {23 public function test_escapes_ampersands() { 24 24 $source = 'penn & teller & at&t'; 25 25 $res = 'penn & teller & at&t'; … … 27 27 } 28 28 29 function test_escapes_greater_and_less_than() {29 public function test_escapes_greater_and_less_than() { 30 30 $source = 'this > that < that <randomhtml />'; 31 31 $res = 'this > that < that <randomhtml />'; … … 33 33 } 34 34 35 function test_ignores_existing_entities() {35 public function test_ignores_existing_entities() { 36 36 $source = '& £ " &'; 37 37 $res = '& £ " &';
Note: See TracChangeset
for help on using the changeset viewer.