1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 00:22:53 +00:00

Remove some dead code and deprecate JsonFormatter, JsonFile::JSON_* constants, and TlsHelper

This commit is contained in:
Jordi Boggiano 2022-01-04 11:15:06 +01:00
parent 36da81bec2
commit 7e50f37b87
No known key found for this signature in database
GPG key ID: 7BBD42C429EC80BC
13 changed files with 38 additions and 206 deletions

View file

@ -29,6 +29,7 @@ class JsonFormatterTest extends TestCase
$backslash = chr(92);
$data = '"' . $backslash . $backslash . $backslash . 'u0119"';
$expected = '"' . $backslash . $backslash . 'ę"';
/** @phpstan-ignore-next-line */
$this->assertEquals($expected, JsonFormatter::format($data, true, true));
}
@ -43,6 +44,7 @@ class JsonFormatterTest extends TestCase
}
$escaped = '"\ud83d\ude00"';
/** @phpstan-ignore-next-line */
$this->assertEquals($escaped, JsonFormatter::format($escaped, true, true));
}
}