- Timestamp:
- 11/30/2017 11:09:33 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/functions/canonical-charset.php
r42200 r42343 56 56 57 57 update_option( 'blog_charset', 'utf8' ); 58 $this->assertEquals( 'UTF-8', get_option( 'blog_charset' ) );58 $this->assertEquals( 'UTF-8', get_option( 'blog_charset' ) ); 59 59 60 60 update_option( 'blog_charset', 'utf-8' ); 61 $this->assertEquals( 'UTF-8', get_option( 'blog_charset' ) );61 $this->assertEquals( 'UTF-8', get_option( 'blog_charset' ) ); 62 62 63 63 update_option( 'blog_charset', 'UTF8' ); 64 $this->assertEquals( 'UTF-8', get_option( 'blog_charset' ) );64 $this->assertEquals( 'UTF-8', get_option( 'blog_charset' ) ); 65 65 66 66 update_option( 'blog_charset', 'UTF-8' ); 67 $this->assertEquals( 'UTF-8', get_option( 'blog_charset' ) );67 $this->assertEquals( 'UTF-8', get_option( 'blog_charset' ) ); 68 68 69 69 update_option( 'blog_charset', 'ISO-8859-1' ); 70 $this->assertEquals( 'ISO-8859-1', get_option( 'blog_charset' ) );70 $this->assertEquals( 'ISO-8859-1', get_option( 'blog_charset' ) ); 71 71 72 72 update_option( 'blog_charset', 'ISO8859-1' ); 73 $this->assertEquals( 'ISO-8859-1', get_option( 'blog_charset' ) );73 $this->assertEquals( 'ISO-8859-1', get_option( 'blog_charset' ) ); 74 74 75 75 update_option( 'blog_charset', 'iso8859-1' ); 76 $this->assertEquals( 'ISO-8859-1', get_option( 'blog_charset' ) );76 $this->assertEquals( 'ISO-8859-1', get_option( 'blog_charset' ) ); 77 77 78 78 update_option( 'blog_charset', 'iso-8859-1' ); 79 $this->assertEquals( 'ISO-8859-1', get_option( 'blog_charset' ) );79 $this->assertEquals( 'ISO-8859-1', get_option( 'blog_charset' ) ); 80 80 81 81 // Arbitrary strings are passed through. 82 82 update_option( 'blog_charset', 'foobarbaz' ); 83 $this->assertEquals( 'foobarbaz', get_option( 'blog_charset' ) );83 $this->assertEquals( 'foobarbaz', get_option( 'blog_charset' ) ); 84 84 85 85 update_option( 'blog_charset', $orig_blog_charset );
Note: See TracChangeset
for help on using the changeset viewer.