Skip to content

Commit 12df31a

Browse files
alexandre-dauboisnicolas-grekas
authored andcommitted
[JsonPath] Use composer packages for JsonPath compliance test suite
1 parent bb2e6f9 commit 12df31a

File tree

6 files changed

+82
-13207
lines changed

6 files changed

+82
-13207
lines changed

composer.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@
140140
"egulias/email-validator": "^2.1.10|^3.1|^4",
141141
"guzzlehttp/promises": "^1.4|^2.0",
142142
"jolicode/jolinotif": "^2.7.2|^3.0",
143+
"jsonpath-standard/jsonpath-compliance-test-suite": "*",
143144
"league/html-to-markdown": "^5.0",
144145
"league/uri": "^6.5|^7.0",
145146
"masterminds/html5": "^2.7.2",
@@ -228,6 +229,18 @@
228229
{
229230
"type": "path",
230231
"url": "src/Symfony/Component/Runtime"
232+
},
233+
{
234+
"type": "package",
235+
"package": {
236+
"name": "jsonpath-standard/jsonpath-compliance-test-suite",
237+
"version": "2025.11.23",
238+
"source": {
239+
"type": "git",
240+
"url": "https://github.com/jsonpath-standard/jsonpath-compliance-test-suite.git",
241+
"reference": "b9d7153e58711ad38bb8e35ece69c13f4b2f7d63"
242+
}
243+
}
231244
}
232245
],
233246
"minimum-stability": "dev"

src/Symfony/Component/JsonPath/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,19 @@ $result = $crawler->find('$.store.book[?match(@.author, "[A-Z].*el.+")]');
3232
$result = $crawler->find("$.store.book[?(@.category == 'fiction')].title");
3333
```
3434

35+
Updating the Compliance Test Suite
36+
----------------------------------
37+
38+
The compliance test suite is gathered from the [JSONPath Test Suite](https://github.com/jsonpath-standard/jsonpath-compliance-test-suite).
39+
40+
When new commits are pushed to the upstream repository, it is necessary to gather them by following these steps:
41+
42+
* Update the `reference` field of `composer.json` to the latest commit hash of the `jsonpath-standard/jsonpath-compliance-test-suite` package
43+
* Update the `version` field to the date of the commit
44+
* Repeat the steps above for the `composer.json` file present at the root level of the `symfony/symfony` repository
45+
* Run `composer update`
46+
* Ensure the tests pass
47+
3548
Resources
3649
---------
3750

src/Symfony/Component/JsonPath/Tests/Fixtures/Makefile

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)