File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ public function getInvalidTests(): \Generator
3232 'ref.json / empty tokens in $ref json-pointer / non-number is invalid ' ,
3333 'ref.json / id must be resolved against nearest parent, not just immediate parent / non-number is invalid ' ,
3434 'refRemote.json / Location-independent identifier in remote ref / string is invalid ' ,
35+ 'refRemote.json / base URI change - change folder / string is invalid '
3536 ];
3637
3738 foreach (parent ::getInvalidTests () as $ name => $ testcase ) {
@@ -79,6 +80,22 @@ public function getValidTests(): \Generator
7980 }
8081 }
8182
83+ public function getValidTests (): \Generator
84+ {
85+ $ skip = [
86+ 'ref.json / id must be resolved against nearest parent, not just immediate parent / number is valid ' ,
87+ 'refRemote.json / base URI change - change folder / number is valid ' ,
88+ ];
89+
90+ foreach (parent ::getValidTests () as $ name => $ testcase ) {
91+ if (in_array ($ name , $ skip , true )) {
92+ continue ;
93+ }
94+ yield $ name => $ testcase ;
95+ }
96+ }
97+
98+
8299 public function getValidForAssocTests (): \Generator
83100 {
84101 $ skip = [
You can’t perform that action at this time.
0 commit comments