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:
parent
36da81bec2
commit
7e50f37b87
13 changed files with 38 additions and 206 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue