We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c04259 commit c0c6486Copy full SHA for c0c6486
1 file changed
tests/IssueTest.php
@@ -1,6 +1,7 @@
1
<?php
2
3
use cebe\openapi\Reader;
4
+use cebe\openapi\spec\OpenApi;
5
6
class IssueTest extends \PHPUnit\Framework\TestCase
7
{
@@ -15,6 +16,14 @@ public function test175UnableToReferenceOtherLocalJsonFile()
15
16
public function test224FailsOnLargeDefinitions()
17
18
$openapi = Reader::readFromJsonFile(__DIR__.'/data/issue/224/cloudflare.json');
19
+ $this->readLargeFiles($openapi);
20
+
21
+ $openapiYml = Reader::readFromYamlFile(__DIR__.'/data/issue/224/cloudflare.yml');
22
+ $this->readLargeFiles($openapiYml);
23
+ }
24
25
+ private function readLargeFiles(OpenApi $openapi): void
26
+ {
27
$this->assertInstanceOf(\cebe\openapi\SpecObjectInterface::class, $openapi);
28
$this->assertSame($openapi->openapi, '3.0.3');
29
$this->assertSame(
0 commit comments