diff options
author | jenkins-bot <jenkins-bot@gerrit.wikimedia.org> | 2021-12-13 10:34:40 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@wikimedia.org> | 2021-12-13 10:34:40 +0000 |
commit | 066ff7d8ffcd8a8532e709e664906edaf8959824 (patch) | |
tree | 2dec261d65aaac86ced9fc4e7f13fb354e907d49 | |
parent | bf7621acd85cd172d292518c0284d6c3f83e1b1a (diff) | |
parent | 35e1f7cc4382ebbd53bb9943f318ce1c1273ff42 (diff) |
Merge "JsonCodec: Fix test"
-rw-r--r-- | tests/phpunit/unit/includes/json/JsonCodecTest.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/phpunit/unit/includes/json/JsonCodecTest.php b/tests/phpunit/unit/includes/json/JsonCodecTest.php index 632c7e27ef5f..c3ce0b558a90 100644 --- a/tests/phpunit/unit/includes/json/JsonCodecTest.php +++ b/tests/phpunit/unit/includes/json/JsonCodecTest.php @@ -173,9 +173,9 @@ class JsonCodecTest extends MediaWikiUnitTestCase { $classInstance = new class() { }; yield 'non-serializable class' => [ $classInstance ]; - yield 'crash in serialization, gzipped data' => [ - "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\x03\xcb\x48\xcd\xc9\xc9\x57\x28\xcf\x2f' - . '\xca\x49\x01\x00\x85\x11\x4a\x0d\x0b\x00\x00\x00" + yield 'invalid UTF-8' => [ + "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\x03\xcb\x48\xcd\xc9\xc9\x57\x28\xcf\x2f" + . "\xca\x49\x01\x00\x85\x11\x4a\x0d\x0b\x00\x00\x00" ]; } |