Commit 81d91b5
test: parse NDJSON documents in getTaskDocuments test
Show how to access individual documents from the stream by
splitting NDJSON lines, decoding each, and asserting structure.
Fixes phpstan alreadyNarrowedType error by removing redundant
assertInstanceOf check.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 902ee12 commit 81d91b5
1 file changed
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
| |||
59 | 58 | | |
60 | 59 | | |
61 | 60 | | |
62 | | - | |
63 | | - | |
64 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
65 | 68 | | |
66 | 69 | | |
67 | 70 | | |
| |||
0 commit comments