Skip to content

Commit c0c6486

Browse files
committed
Add more assertions and refactor test
1 parent 8c04259 commit c0c6486

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

tests/IssueTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?php
22

33
use cebe\openapi\Reader;
4+
use cebe\openapi\spec\OpenApi;
45

56
class IssueTest extends \PHPUnit\Framework\TestCase
67
{
@@ -15,6 +16,14 @@ public function test175UnableToReferenceOtherLocalJsonFile()
1516
public function test224FailsOnLargeDefinitions()
1617
{
1718
$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+
{
1827
$this->assertInstanceOf(\cebe\openapi\SpecObjectInterface::class, $openapi);
1928
$this->assertSame($openapi->openapi, '3.0.3');
2029
$this->assertSame(

0 commit comments

Comments
 (0)