Changeset 30515 for trunk/tests/phpunit/tests/formatting/SanitizeUser.php
- Timestamp:
- 11/22/2014 07:53:37 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/formatting/SanitizeUser.php
r25002 r30515 10 10 $this->assertEquals($expected, sanitize_user($input)); 11 11 } 12 /** 13 * @ticket 10823 14 */ 15 function test_strips_entities() { 12 13 public function test_strips_encoded_ampersand() { 16 14 $this->assertEquals("ATT", sanitize_user("AT&T")); 15 } 16 17 public function test_strips_encoded_ampersand_when_followed_by_semicolon() { 17 18 $this->assertEquals("ATT Test;", sanitize_user("AT&T Test;")); 18 $this->assertEquals("AT&T Test;", sanitize_user("AT&T Test;"));19 19 } 20 20 21 function test_strips_percent_encoded_octets() { 21 22 $expected = is_multisite() ? 'franois' : 'Franois';
Note: See TracChangeset
for help on using the changeset viewer.