1
0
mirror of https://github.com/halaxa/json-machine.git synced 2025-02-24 08:02:27 +01:00

183 Commits

Author SHA1 Message Date
Filip Halaxa
15fee5e7c8 Fixed #19 - currentPath building process is fixed 2019-12-12 22:24:04 +01:00
Bas de Groot
5e95d9fbce set pointer of the failing test to the exact place where it fails. 2019-12-02 10:54:46 +01:00
Bas de Groot
6d45dfabd9 Failing unittest:
in src/Parser.php at line 112 $currentPath[$currentLevel] holds thepreviously found attribute string ("previous_download") which is then used for a calculation.

Error:
A non-numeric value encountered

src/Parser.php:112
test/JsonMachineTest/JsonPointerTest.php:16
2019-12-02 10:47:07 +01:00
Filip Halaxa
e8b7f2d0bb Added PHP 7.4 to travis.yml 2019-10-15 12:37:46 +02:00
Filip Halaxa
c892385db9 Tests pass on PHP 7.4 RC 2019-10-15 12:31:20 +02:00
Filip Halaxa
cbc45bdcff Helper function to cast iterator of arrays to iterator of objects 2019-10-15 12:21:03 +02:00
Filip Halaxa
c865e037ee Treat UTF-8 BOM as simple whitespace 2019-10-15 11:51:50 +02:00
Fabien
ed7b0ea914 Add test for UTF-8 BOM detection 2019-10-15 11:51:50 +02:00
Fabien
12cf951510 Remove UTF-16 and UTF-32 bytes detection - the file must be converted to UTF-8 to be compatible with byte stream parser 2019-10-15 11:51:50 +02:00
Fabien
65764eda75 add whitelist paths in phpunit config, useful for code coverage report 2019-10-15 11:51:50 +02:00
Fabien
212945cf12 Ignore UTF BOM at the beginning of the stream 2019-10-15 11:51:50 +02:00
Filip Halaxa
e7bb117876 README 2019-06-14 15:20:09 +02:00
Nathan Bishop
a116619aed Fix a bug where incorrect line number was displayed in files containing CRLF line endings 2019-06-12 13:15:41 +02:00
Nathan Bishop
4e75db9600 Remove testing of positional information 2019-06-12 13:15:41 +02:00
Filip Halaxa
b4817b8cc8 Added dataset captions 2019-06-12 13:15:41 +02:00
Filip Halaxa
f55f6d8bbf Added some crlf confusion :) 2019-06-12 13:15:41 +02:00
Nathan Bishop
1c25c679b2 Add locational information about a lexeme's position with a formatted json stream/file 2019-06-12 13:15:41 +02:00
Nathan Bishop
f942d27eba Add tests for verifying behaviour of tracking a lexemes position within a JSON file 2019-06-12 13:15:41 +02:00
Filip Halaxa
caf8bbde76 Travis build icon 2019-04-10 19:44:18 +02:00
Filip Halaxa
e1001dd5c8 .travis.yml 2019-04-10 19:41:37 +02:00
Filip Halaxa
bd667f515b Removed leading newlines in run.sh 2019-03-24 16:54:36 +01:00
Filip Halaxa
b8915261ef echo replaced by printf 2019-03-24 16:45:24 +01:00
Filip Halaxa
9a4c2f0553 Doc comments improvements 2019-03-24 11:52:08 +01:00
Filip Halaxa
64db5854ee Link to docker installation 2019-03-22 10:50:16 +01:00
Filip Halaxa
01f2326ff4 Updated xdebug to 2.7.0 for PHP 7 2019-03-22 10:46:08 +01:00
Filip Halaxa
b81e9026a7 Docker: Check for a new PHP image once per day 2019-03-21 20:37:39 +01:00
Filip Halaxa
ee5a5e35c4 Removed suggest, it's already in require-dev 2019-03-21 11:53:31 +01:00
Filip Halaxa
8e3555b270
Merge pull request #9 from marenkov/master
Fix a problem with "key":"value\\"
0.3.2
2019-03-20 20:33:36 +01:00
Filip Halaxa
95dbc8bdbd Renamed variable 2019-03-20 20:32:34 +01:00
Filip Halaxa
cea59292f2 Added test case 2019-03-20 20:25:37 +01:00
Vitaliy Marenkov
ef591b8cc4
Fix a problem with "key":"value\\"
My JSON-file has values like this:
"phone":"+254652155251\\"
and it causes the error "Unexpected symbol '<char>' At position <number>".
2019-03-20 15:35:16 +01:00
Filip Halaxa
559aea1738 Got rid of the quiet dependency on local composer binary 0.3.1 2019-03-16 19:20:12 +01:00
Filip Halaxa
551de7ad89 Case sensitivity and absence of + before number 2019-03-10 17:18:45 +01:00
Filip Halaxa
1077537d70 Fixed json_decode call on performace test to return array as JsonMachine 2019-03-10 16:45:50 +01:00
Filip Halaxa
1b94e1e481
Update README.md 2019-03-09 14:02:26 +01:00
Filip Halaxa
c12001363e Working xdebug with each php version + php images auto-pull 2019-03-08 15:00:35 +01:00
Filip Halaxa
368f808d41 Removed composer.lock 2019-03-08 15:00:35 +01:00
Filip Halaxa
b591a7d3c6 added xdebug to testing/development containers 2019-03-08 15:00:22 +01:00
Filip Halaxa
3e0db07381
Merge pull request #7 from halaxa/pointer-after-array
JsonPointer fails when pointing after an array element
2019-03-07 17:08:13 +01:00
Filip Halaxa
03e7cbfba7 Added more test cases 2019-03-02 17:07:16 +01:00
Filip Halaxa
da1e2127fc Fixed: Json pointer was failing when iterated subtree was not the first at its level 2019-03-02 17:03:23 +01:00
Filip Halaxa
a2f5dcb37e Failing test case 2019-03-02 14:33:22 +01:00
Filip Halaxa
1c02d8e761 Fixed guzzle example 2019-02-28 10:29:13 +01:00
Filip Halaxa
1c70b6cd84 Updated PHP 7.3 version to stable 2019-02-25 20:11:26 +01:00
Filip Halaxa
b3a312abcd Rewritten performance tests 2019-02-25 20:11:26 +01:00
Filip Halaxa
0352a1173f
Update README.md 2018-12-13 20:26:42 +01:00
Filip Halaxa
204750fe8b Memory consumption optimization for in-memory JSON 0.3.0 2018-12-13 20:12:03 +01:00
Filip Halaxa
1ab7184513 Ready for different byte providers 2018-12-13 20:12:03 +01:00
Filip Halaxa
4a0a038b2b Minor code improvements 2018-12-13 20:12:03 +01:00
Filip Halaxa
277ecffad1
Update README.md 2018-12-10 11:41:53 +01:00