[wp-trac] [WordPress Trac] #31262: Tests_DB_Charset failures
WordPress Trac
noreply at wordpress.org
Sun Feb 8 05:14:16 UTC 2015
#31262: Tests_DB_Charset failures
----------------------------+-------------------
Reporter: SergeyBiryukov | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.2
Component: Database | Version: trunk
Severity: normal | Keywords:
Focuses: |
----------------------------+-------------------
Background: #21212
Seeing two failures in current trunk running `phpunit --group wpdb` on PHP
5.2.17, MySQL 5.0.51a:
{{{
There were 2 failures:
1) Tests_DB_Charset::test_strip_invalid_text with data set #6
(array(array('hebrew', 'ùord÷ress', true)), array(array('hebrew',
'ùord÷ress', true)), 'hebrew')
hebrew
Failed asserting that Array (
0 => Array (
'charset' => 'hebrew'
'value' => '?ord?ress'
'db' => true
)
) is identical to Array (
0 => Array (
'charset' => 'hebrew'
'value' => 'ùord÷ress'
'db' => true
)
).
S:\home\wordpress\develop\tests\phpunit\tests\db\charset.php:129
S:\usr\local\php5\phpunit:46
2) Tests_DB_Charset::test_strip_invalid_text with data set #9
(array(array('latin1', '🎷'), array('ascii', 'Hello World'),
array('utf8', 'H€llo😈World¢'), array('utf8mb3',
'H€llo😈World¢'), array('utf8mb4', 'H€llo😈World¢'),
array('koi8r', 'ýordòress', true), array('hebrew', 'ùord÷ress', true),
array(false, 100), array('big5', 'a¦@b')), array(array('latin1', '🎷'),
array('ascii', 'Hello World'), array('utf8', 'H€lloWorld¢'),
array('utf8mb3', 'H€lloWorld¢'), array('utf8mb4',
'H€llo😈World¢'), array('koi8r', 'ýordòress', true), array('hebrew',
'ùord÷ress', true), array(false, 100), array('big5', 'a¦@b')), 'multiple
fields/charsets')
multiple fields/charsets
Failed asserting that Array (
0 => Array (
'charset' => 'latin1'
'value' => '🎷'
)
1 => Array (
'charset' => 'ascii'
'value' => 'Hello World'
)
2 => Array (
'charset' => 'utf8'
'value' => 'H€lloWorld¢'
)
3 => Array (
'charset' => 'utf8mb3'
'value' => 'H€lloWorld¢'
)
4 => Array (
'charset' => 'utf8mb4'
'value' => 'H€llo😈World¢'
)
5 => Array (
'charset' => 'koi8r'
'value' => 'ýordòress'
'db' => true
)
6 => Array (
'charset' => 'hebrew'
'value' => '?ord?ress'
'db' => true
)
7 => Array (
'charset' => false
'value' => 100
)
8 => Array (
'charset' => 'big5'
'value' => 'a¦@b'
)
) is identical to Array (
0 => Array (
'charset' => 'latin1'
'value' => '🎷'
)
1 => Array (
'charset' => 'ascii'
'value' => 'Hello World'
)
2 => Array (
'charset' => 'utf8'
'value' => 'H€lloWorld¢'
)
3 => Array (
'charset' => 'utf8mb3'
'value' => 'H€lloWorld¢'
)
4 => Array (
'charset' => 'utf8mb4'
'value' => 'H€llo😈World¢'
)
5 => Array (
'charset' => 'koi8r'
'value' => 'ýordòress'
'db' => true
)
6 => Array (
'charset' => 'hebrew'
'value' => 'ùord÷ress'
'db' => true
)
7 => Array (
'charset' => false
'value' => 100
)
8 => Array (
'charset' => 'big5'
'value' => 'a¦@b'
)
)
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31262>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list