Skip to content

Commit a8543ad

Browse files
Merge branch '6.4' into 7.0
* 6.4: [TwigBridge] foundation 5 layout: use form_label_content block for checkbox and radio labels [TwigBridge] Fix compat with Twig v3.9 [Cache] Sync the Redis proxies with upstream [Doctrine Messenger] Fix support for pgsql + pgbouncer. [Mailer] Simplify fix Do not produce notice/warning when consuming from multiple transports and explicitly listed queues [FrameworkBundle] Check if the _route attribute exists on the request [Scheduler] fix documentation link [PropertyAccess] Fixes getValue() on an unitialized object property on a lazy ghost [HttpClient] Make retry strategy work again AssetMapper: Remove 'auto-generated' info [Mailer] Fix signed emails breaking the profiler [Mailer] [Mailgun] Fix expecting payload without tags or user variables [Validator] Update Spanish (es) translations Fix fetching data in `W3CReferenceTest` on AppVeyor Fix SQS visibility_timeout type [VarDumper] Fix serialization of stubs with null or uninitialized values
2 parents 58f143f + 83e1dc8 commit a8543ad

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

Tests/Reference/W3CReferenceTest.php

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function testElements()
3636
sort($referenceElements);
3737

3838
$this->assertSame(
39-
json_decode(file_get_contents(self::STANDARD_RESOURCES['elements']), true, 512, \JSON_THROW_ON_ERROR),
39+
$this->getResourceData(self::STANDARD_RESOURCES['elements']),
4040
$referenceElements
4141
);
4242
}
@@ -48,8 +48,18 @@ public function testAttributes()
4848
}
4949

5050
$this->assertSame(
51-
json_decode(file_get_contents(self::STANDARD_RESOURCES['attributes']), true, 512, \JSON_THROW_ON_ERROR),
51+
$this->getResourceData(self::STANDARD_RESOURCES['attributes']),
5252
array_keys(W3CReference::ATTRIBUTES)
5353
);
5454
}
55+
56+
private function getResourceData(string $resource): array
57+
{
58+
return json_decode(
59+
file_get_contents($resource, false, stream_context_create(['ssl' => ['verify_peer' => false, 'verify_peer_name' => false]])),
60+
true,
61+
512,
62+
\JSON_THROW_ON_ERROR
63+
);
64+
}
5565
}

0 commit comments

Comments
 (0)