1
0
mirror of https://github.com/halaxa/json-machine.git synced 2025-02-19 21:54:45 +01:00

171 Commits

Author SHA1 Message Date
Filip Halaxa
6887c76d7e Fixed the failing test caused by legacy comparison before PHP 8 2022-10-03 20:18:12 +02:00
Filip Halaxa
de0ae2029e Merge branch 'master' into fix/fix-subtrees-parsing 2022-09-30 17:25:47 +02:00
Filip Halaxa
fb029ecc5b make cs-fix 2022-09-29 16:07:16 +02:00
Filip Halaxa
00d54a75b2 Meaningful error on invalid token. Fixes #86 2022-09-29 16:04:15 +02:00
Andrea Marco Sartori
6aa32b3501 Update tests for subtrees using wildcards 2022-05-23 23:58:01 +10:00
Filip Halaxa
c99d446e70 Added test 2022-02-16 14:17:20 +01:00
Filip Halaxa
75bb4b9ff8 make cs-fix 2022-02-16 14:04:56 +01:00
Filip Halaxa
534176fb53 Autoloading class in autoloader.php to track code coverage 2022-02-16 14:04:14 +01:00
Filip Halaxa
e15463bb38 Added missing annotation 2022-02-13 14:18:07 +01:00
Filip Halaxa
220f7d56d1 Fixed annotations 2022-02-13 13:48:33 +01:00
Filip Halaxa
ace39a082d Tests for autoload.php 2022-02-12 15:28:42 +01:00
Filip Halaxa
2e9abfde31 Fixed make test-performance 2022-02-05 18:41:24 +01:00
Filip Halaxa
3302a16398 Removed Parser::getJsonPointer() and Parser::getJsonPointerPath() 2022-02-04 16:22:19 +01:00
Filip Halaxa
5887899134 Fixed another bug in TokensWithDebugging::getPosition() 2022-02-04 15:30:03 +01:00
Filip Halaxa
eabe243664 Fixed Tokens::getPosition() + tests coverage 2022-02-04 14:14:01 +01:00
Filip Halaxa
af424e0bcf Reduced test file sizes 2022-02-03 22:15:28 +01:00
Filip Halaxa
ff02dcc4b6 PHP strict types required 2022-02-03 21:56:47 +01:00
Filip Halaxa
f66459a869 @covers annotations required 2022-02-03 21:41:58 +01:00
Filip Halaxa
a456889ce2 InvalidResultTest 2022-02-03 21:07:36 +01:00
Filip Halaxa
6bde48d8eb ValidResultTest 2022-02-03 21:06:45 +01:00
Filip Halaxa
e93c9b4c0f DecodingErrorTest 2022-02-03 20:34:10 +01:00
Filip Halaxa
f3bcd153ea SyntaxErrorExceptionTest 2022-02-03 20:32:07 +01:00
Filip Halaxa
a1be67c3b6 make cs-fix 2022-02-03 16:18:11 +01:00
Filip Halaxa
c0d30593d4 Lexer renamed to Tokens 2022-02-03 16:15:56 +01:00
Filip Halaxa
7a601c1b16 SytnaxError -> SyntaxErrorException 2022-02-03 16:01:17 +01:00
Filip Halaxa
0679692b3e Separate test cases for individual options 2022-02-03 14:15:05 +01:00
Filip Halaxa
fc2b0e53bc Separate PassThruDecoderTest 2022-02-03 13:49:40 +01:00
Filip Halaxa
7b2da35f32 Single decode() method 2022-02-03 13:43:25 +01:00
Filip Halaxa
55d2c86880 ItemDecoder::decodeInternalKey() and ValidStringResult deleted. 2022-01-31 14:14:34 +01:00
Filip Halaxa
e11614b94d Fixed JSON Pointer matching to be RFC compliant. 2022-01-31 13:56:24 +01:00
Filip Halaxa
a96728af77 ExtJsonDecoding added to covered code 2022-01-27 20:33:25 +01:00
Filip Halaxa
0d28290d93 Added @covers annotations in tests 2022-01-27 13:05:57 +01:00
Filip Halaxa
d804498649 Tests radability 2022-01-27 13:05:57 +01:00
Filip Halaxa
6622299be5 Test for Items::getJsonPointers() 2022-01-26 14:37:07 +01:00
Filip Halaxa
46d068252b Tests for Items::getMatchedJsonPointer() and Items::getCurrentJsonPointer() 2022-01-26 14:31:55 +01:00
Filip Halaxa
e68452db63 Added test cases to testGetCurrentJsonPointer and testGetMatchedJsonPointer 2022-01-25 21:56:28 +01:00
Filip Halaxa
27f93442c8 SRP: Split test method into two 2022-01-25 13:12:06 +01:00
Filip Halaxa
0498cb4af8 Improved exception messages 2022-01-22 22:19:40 +01:00
Filip Halaxa
3ec236d6b0 Parser::getJsonPointerPath() reverted to pre-PR state to keep the functionality during deprecation 2022-01-22 22:04:39 +01:00
Filip Halaxa
3b66b0856f Added edge test cases proving correct order of decoding and encoding of JSON Pointer 2022-01-22 15:40:59 +01:00
Filip Halaxa
f29c31bdf4 make cs-fix 2022-01-22 14:35:26 +01:00
Filip Halaxa
6126020b20 Options validation factored out to separate ItemsOptions class 2022-01-22 14:33:25 +01:00
Filip Halaxa
151e46b9ee testGetJsonPointers() 2022-01-20 19:10:38 +01:00
Filip Halaxa
f3bc7ba589 Backwards compatible Parser::getJsonPointer() behavior 2022-01-20 19:05:51 +01:00
Filip Halaxa
c7abb78f61 Fixed some stuff in tests 2022-01-20 18:55:31 +01:00
Florian Wolfsjäger
0d92dafb0b
Merge remote-tracking branch 'upstream/master'
# Conflicts:
#	src/Parser.php
2022-01-20 14:01:40 +01:00
Filip Halaxa
4cbe6107e3 Code style: added 'not_operator_with_space' rule. 2022-01-20 12:39:08 +01:00
Florian Wolfsjäger
dc763526bd
Fix JSON stream parser test for root JSON pointer 2022-01-19 15:27:36 +01:00
Florian Wolfsjäger
80779cedc0
Fix test for root JSON pointer 2022-01-19 09:41:09 +01:00
Filip Halaxa
428bb840ab Added edge cases to ParserTest::dataGetJsonPointer 2022-01-18 20:32:05 +01:00