1
0
Fork 0
Commit Graph

54 Commits (1e7857d682d3d88f9e108623b89f529eb4bf4ac7)

Author SHA1 Message Date
Jordi Boggiano 37d722e73c
PHPStan/tests updates (#11996)
* Remove a bunch of inline ignores and migrate all PHPUnit assertions to static calls

* Update baseline (1573, 93)

* Update commit hash
2024-05-29 23:12:06 +02:00
MaximAL 1c9fbeb978
Preserve indentation when writing JSON files (#11390)
Refs #11341
2023-07-19 14:13:06 +02:00
Jordi Boggiano 131da999ac
Fix CS (#11003) 2022-08-17 14:20:07 +02:00
Jordi Boggiano 06ef742a66
Update phpstan, fix InstalledVersions key ordering to be more logical/consistent 2022-04-29 10:30:04 +02:00
Jordi Boggiano 8e93566c18
Validate config schema before loading it, fixes #10685 2022-04-01 11:23:59 +02:00
Jordi Boggiano 6a466a120a
Enable strict types on all files 2022-02-24 13:24:34 +01:00
Jordi Boggiano 6da38f83a0
Add parameter types to all the things 2022-02-22 16:48:53 +01:00
Jordi Boggiano abdc6893a6
Add void types where no return statement is present 2022-02-18 10:38:54 +01:00
Jordi Boggiano 86fb8d4412
Fix CS 2022-02-18 08:50:11 +01:00
Jordi Boggiano 7e50f37b87
Remove some dead code and deprecate JsonFormatter, JsonFile::JSON_* constants, and TlsHelper 2022-01-04 11:15:33 +01:00
Niels Vanpachtenbeke 1c928466a9
Remove code blocks for php <7.2 compatibility (#10417) 2022-01-03 17:35:32 +01:00
Jordi Boggiano ccd87c479c
Test fixes 2022-01-01 14:54:23 +01:00
Jordi Boggiano 44b69ba77f
Upgrade php-cs-fixer to 3.x and fix CS 2021-10-27 16:21:45 +02:00
jakobvibe f667c7b8de
Add types to tests/composer/test/json (#10222)
Co-authored-by: Jakob Vibe <jv@ipw.dk>
2021-10-27 11:37:51 +02:00
adlacruzes 7366b8e362 Fix JsonFile when using custom json schema with no "name" and "description" properties 2021-06-03 20:15:35 +02:00
Guilliam Xavier 393c9a5946 Add more tests 2021-05-24 14:42:23 +02:00
Guilliam Xavier 2d21dd675a Invert strict/lax schema validation 2021-05-24 11:51:04 +02:00
Jordi Boggiano 1593b67230
Fix warnings on higher phpunit versions 2020-09-11 11:01:32 +02:00
Ion Bazan a2137d5263 use Symfony PHPUnit Bridge 2020-02-07 12:22:22 +08:00
Gabriel Caruso afc9a7643e Use PHPUnit\Framework\TestCase instead of PHPUnit_Framework_TestCase 2017-11-30 13:44:43 -02:00
Remi Collet a6c6537529 skip no more needed with jsonc 1.3.9 2015-11-04 09:11:01 +01:00
Remi Collet c014e0882f ignore this test with 'jsonc' 2015-07-16 12:03:35 +02:00
Jordi Boggiano 27aac31970 Fix tests for autocrlf=true checkouts, fixes #4049 2015-05-28 14:43:52 +01:00
Possum 29ca21f30e PHP version checks tweaking 2015-05-05 20:18:24 +02:00
Possum d7f7418243 some more test failure details 2015-05-05 18:13:16 +02:00
Jordi Boggiano 00ca2a91a3 Fix typo 2015-04-30 00:08:45 +01:00
Jordi Boggiano a5dfaafa02 Add a fixture for the schema validation 2015-04-29 23:45:30 +01:00
Jordi Boggiano 94926218e8 CS fixes 2014-10-17 18:57:27 +01:00
Jordi Boggiano 109f4ffd5e Normalize json across all php versions, fixes #3226 2014-10-04 17:02:42 +01:00
Jordi Boggiano ed54e8346d Fix json test, fixes #3326 2014-10-04 12:33:28 +01:00
Jordi Boggiano 8881cec174 Simplify version ranges (hopefully includes hhvm), refs #3049 2014-06-29 12:27:27 +02:00
Jordi Boggiano 3874a11238 Update json test 2014-06-22 11:01:05 +02:00
Sandy Pleyte 3a2815b778 Added extra unit test from the example in the ticket. 2014-02-19 14:17:23 +01:00
Sandy Pleyte f92f2f45a9 Fix for #2613, when using php < 5.4 there was an unnecessary backslash before each utf-8 char. The problem was that the regexp matched all utf-8 encoded chars (included the ones that where escaped). The new regexp uses the lookbehind feature to check if the backslash isn't prefixed with an other backslash. 2014-02-18 09:01:12 +01:00
Sandy Pleyte 7a902ed96d Fix for #2613, when using php < 5.4 there was an unnecessary backslash before each utf-8 char. The problem was that the regexp matched all utf-8 encoded chars (included the ones that where escaped). The new regexp uses the lookbehind feature to check if the backslash isn't prefixed with an other backslash. 2014-02-17 13:54:35 +01:00
Jordi Boggiano e348642aa7 Fix json manipulator handling of escaped backslashes, fixes #1588 2013-02-18 17:27:43 +01:00
Jordi Boggiano 521bbe6556 CS fixes 2012-08-18 16:22:15 +02:00
Jordi Boggiano db16f68fbf Tweak exception messages 2012-07-03 14:21:10 +02:00
Robert Schönthal e96e06946f fixed json file tests 2012-07-03 12:37:58 +02:00
Robert Schönthal c517ac6404 fixed issue #347 added file to json validation exception 2012-07-03 12:37:58 +02:00
Jordi Boggiano a30e6109bf Fix 5.4.0 interop in formatting of empty array/objects 2012-04-29 21:04:18 +02:00
Martin Hasoň 947d429c61 Removed definition of global constants reserved for PHP >=5.4 and fixed tests 2012-03-09 09:31:51 +01:00
Jordi Boggiano bd54e43d37 Rework JsonFile API slightly, avoid tokenizing in php if the syntax is valid 2012-03-05 22:01:47 +01:00
digitalkaoz 6929c42848 added schema/syntax validation for composer.json 2012-02-23 21:54:49 +01:00
Volker Dusch 9ede082371 Skip tests if mbstring is not installed 2012-02-18 11:36:11 +01:00
Martin Hasoň e621495c4d Added support for JSON_UNESCAPED_SLASHES 2012-02-17 10:06:59 +01:00
Martin Hasoň ff0f833b3e Added support for JSON_UNESCAPED_UNICODE and fixed parsing string 2012-02-15 12:00:04 +01:00
Martin Hasoň 76a2be5ae0 Fixed detection of missing comma and added detection of missing colon in json 2012-01-24 15:10:55 +01:00
Jakub Zalas c680ec7e51 Fixed json encoding when quoted value contained trailing backslash.
Condition checking if current character is inside a quoted string did not consider the case when backslash before quote is escaped with another backslash.
2012-01-19 00:01:56 +00:00
Justin Rainbow 447230d77a Extracting JsonFile additions for prettifying JSON 2012-01-16 16:42:36 -07:00