'azjezz/psl', 'type' => 'library', 'description' => 'PHP Standard Library.', 'keywords' => ['php', 'std', 'stdlib', 'utility', 'psl'], 'license' => 'MIT' ], $actual); } public function testDecodeThrowsForInvalidSyntax(): void { $this->expectException(Json\Exception\JsonDecodeException::class); $this->expectExceptionMessage('The decoded property name is invalid.'); Json\decode('{"\u0000": 1}', false); } public function testDecodeMalformedUTF8(): void { $this->expectException(Json\Exception\JsonDecodeException::class); $this->expectExceptionMessage('Malformed UTF-8 characters, possibly incorrectly encoded.'); Json\decode("\"\xC1\xBF\""); } }