serializer = new SmartSerializer(); } /** * @requires PHP 7.3 * @see https://github.com/elastic/elasticsearch-php/issues/1012 */ public function testThrowJsonErrorException() { $this->expectException(JsonErrorException::class); $this->expectExceptionCode(JSON_ERROR_SYNTAX); $this->serializer->deserialize('{ "foo" : bar" }', []); } }