Changeset 48937 for trunk/tests/phpunit/tests/formatting/SanitizeUser.php
- Timestamp:
- 09/02/2020 12:35:36 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/formatting/SanitizeUser.php
r46586 r48937 8 8 $input = 'Captain <strong>Awesome</strong>'; 9 9 $expected = is_multisite() ? 'captain awesome' : 'Captain Awesome'; 10 $this->assert Equals( $expected, sanitize_user( $input ) );10 $this->assertSame( $expected, sanitize_user( $input ) ); 11 11 } 12 12 … … 19 19 } 20 20 21 $this->assert Equals( $expected, sanitize_user( 'AT&T' ) );21 $this->assertSame( $expected, sanitize_user( 'AT&T' ) ); 22 22 } 23 23 … … 30 30 } 31 31 32 $this->assert Equals( $expected, sanitize_user( 'AT&T Test;' ) );32 $this->assertSame( $expected, sanitize_user( 'AT&T Test;' ) ); 33 33 } 34 34 35 35 function test_strips_percent_encoded_octets() { 36 36 $expected = is_multisite() ? 'franois' : 'Franois'; 37 $this->assert Equals( $expected, sanitize_user( 'Fran%c3%a7ois' ) );37 $this->assertSame( $expected, sanitize_user( 'Fran%c3%a7ois' ) ); 38 38 } 39 39 function test_optional_strict_mode_reduces_to_safe_ascii_subset() { 40 $this->assert Equals( 'abc', sanitize_user( '()~ab~ˆcˆ!', true ) );40 $this->assertSame( 'abc', sanitize_user( '()~ab~ˆcˆ!', true ) ); 41 41 } 42 42 }
Note: See TracChangeset
for help on using the changeset viewer.