Skip to content

Commit 9a38fe1

Browse files
committed
test: Skip failling test which where introduced after json-schema-test-suite v1.2.0
1 parent 4118460 commit 9a38fe1

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

tests/Drafts/Draft4Test.php

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,20 @@ protected function getFilePaths(): array
2020
];
2121
}
2222

23+
public function getInvalidTests(): \Generator
24+
{
25+
$skip = [
26+
'refRemote.json / base URI change - change folder / string is invalid'
27+
];
28+
29+
foreach (parent::getInvalidForAssocTests() as $name => $testcase) {
30+
if (in_array($name, $skip, true)) {
31+
continue;
32+
}
33+
yield $name => $testcase;
34+
}
35+
}
36+
2337
public function getInvalidForAssocTests(): \Generator
2438
{
2539
$skip = [
@@ -35,6 +49,22 @@ public function getInvalidForAssocTests(): \Generator
3549
}
3650
}
3751

52+
public function getValidTests(): \Generator
53+
{
54+
$skip = [
55+
'ref.json / id must be resolved against nearest parent, not just immediate parent / number is valid',
56+
'refRemote.json / base URI change - change folder / number is valid',
57+
];
58+
59+
foreach (parent::getValidTests() as $name => $testcase) {
60+
if (in_array($name, $skip, true)) {
61+
continue;
62+
}
63+
yield $name => $testcase;
64+
}
65+
}
66+
67+
3868
public function getValidForAssocTests(): \Generator
3969
{
4070
$skip = [

0 commit comments

Comments
 (0)