mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Add tests and fixes some issues
This commit is contained in:
parent
d4b7f802df
commit
b7f6cf69ab
13 changed files with 256 additions and 13 deletions
|
@ -42,6 +42,15 @@ class JsonFileTest extends \PHPUnit_Framework_TestCase
|
|||
$this->expectParseException('unescaped backslash (\\) on line 2, char 12', $json);
|
||||
}
|
||||
|
||||
public function testParseErrorSkipsEscapedBackslash()
|
||||
{
|
||||
$json = '{
|
||||
"fo\\\\o": "bar"
|
||||
"a": "b"
|
||||
}';
|
||||
$this->expectParseException('missing comma on line 2, char 23', $json);
|
||||
}
|
||||
|
||||
public function testParseErrorDetectSingleQuotes()
|
||||
{
|
||||
$json = '{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue