Skip to content

Commit 50dec5f

Browse files
committed
test: Skip failling test which where introduced after json-schema-test-suite v1.2.0
1 parent 1a1228e commit 50dec5f

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
@@ -42,6 +42,20 @@ public function getInvalidTests(): \Generator
4242
}
4343
}
4444

45+
public function getInvalidTests(): \Generator
46+
{
47+
$skip = [
48+
'refRemote.json / base URI change - change folder / string is invalid'
49+
];
50+
51+
foreach (parent::getInvalidForAssocTests() as $name => $testcase) {
52+
if (in_array($name, $skip, true)) {
53+
continue;
54+
}
55+
yield $name => $testcase;
56+
}
57+
}
58+
4559
public function getInvalidForAssocTests(): \Generator
4660
{
4761
$skip = [
@@ -79,6 +93,22 @@ public function getValidTests(): \Generator
7993
}
8094
}
8195

96+
public function getValidTests(): \Generator
97+
{
98+
$skip = [
99+
'ref.json / id must be resolved against nearest parent, not just immediate parent / number is valid',
100+
'refRemote.json / base URI change - change folder / number is valid',
101+
];
102+
103+
foreach (parent::getValidTests() as $name => $testcase) {
104+
if (in_array($name, $skip, true)) {
105+
continue;
106+
}
107+
yield $name => $testcase;
108+
}
109+
}
110+
111+
82112
public function getValidForAssocTests(): \Generator
83113
{
84114
$skip = [

0 commit comments

Comments
 (0)