diff options
| author | 2025-03-13 22:40:41 +0100 | |
|---|---|---|
| committer | 2025-03-13 22:40:41 +0100 | |
| commit | a7361a3e7cd335c8932deba88fe60e8f673c2d40 (patch) | |
| tree | bb4c007188d54897210f2a0539c2df0f438fb069 /tests | |
| parent | df545b513b1c43e54da5b023bf3fe01bf36ad013 (diff) | |
Implement JSON string concatenation with & operator (#7414)
Inspired by [JSONata syntax](https://docs.jsonata.org/expressions).
fix https://github.com/FreshRSS/FreshRSS/issues/6565
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/app/Utils/dotNotationUtilTest.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/app/Utils/dotNotationUtilTest.php b/tests/app/Utils/dotNotationUtilTest.php index 20d4726af..787d3ddf3 100644 --- a/tests/app/Utils/dotNotationUtilTest.php +++ b/tests/app/Utils/dotNotationUtilTest.php @@ -33,6 +33,9 @@ class dotNotationUtilTest extends PHPUnit\Framework\TestCase { yield [$array, 'items[0].meta.title', 'first']; yield [$array, 'items.1.meta.title', 'second']; yield [$array, 'items[1].meta.title', 'second']; + yield [$array, '"Hello " & hello & \'!\'', 'Hello world!']; + yield [$array, '"Hello & goodbye " & hello & \'!\'', 'Hello & goodbye world!']; + yield [$array, '"Hello " & hello & deeper.hello & "!"', 'Hello worldagain!']; } /** |
