Skip to content

Commit eb1108d

Browse files
committed
fix test paths
1 parent 82b0db7 commit eb1108d

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

tests/ReaderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public function testSymfonyYamlBugHunt()
108108
}
109109
}
110110

111-
$openApiFile = __DIR__ . '/../vendor/oai/openapi-specification/examples/v3.0/uspto.yaml';
111+
$openApiFile = __DIR__ . '/../vendor/oai/openapi-specification-3.0/examples/v3.0/uspto.yaml';
112112
$openapi = \cebe\openapi\Reader::readFromYamlFile($openApiFile);
113113

114114
$inlineYamlExample = $openapi->paths['/']->get->responses['200']->content['application/json']->example;

tests/spec/OpenApiTest.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function testEmpty()
2929

3030
public function testReadPetStore()
3131
{
32-
$openApiFile = __DIR__ . '/../../vendor/oai/openapi-specification/examples/v3.0/petstore.yaml';
32+
$openApiFile = __DIR__ . '/../../vendor/oai/openapi-specification-3.0/examples/v3.0/petstore.yaml';
3333

3434
$yaml = Yaml::parse(file_get_contents($openApiFile));
3535
$openapi = new OpenApi($yaml);
@@ -94,12 +94,12 @@ public function specProvider()
9494
// examples from https://github.com/OAI/OpenAPI-Specification/tree/master/examples/v3.0
9595
$oaiExamples = [
9696
// TODO symfony/yaml can not read this file!?
97-
// __DIR__ . '/../../vendor/oai/openapi-specification/examples/v3.0/api-with-examples.yaml',
98-
__DIR__ . '/../../vendor/oai/openapi-specification/examples/v3.0/callback-example.yaml',
99-
__DIR__ . '/../../vendor/oai/openapi-specification/examples/v3.0/link-example.yaml',
100-
__DIR__ . '/../../vendor/oai/openapi-specification/examples/v3.0/petstore.yaml',
101-
__DIR__ . '/../../vendor/oai/openapi-specification/examples/v3.0/petstore-expanded.yaml',
102-
__DIR__ . '/../../vendor/oai/openapi-specification/examples/v3.0/uspto.yaml',
97+
// __DIR__ . '/../../vendor/oai/openapi-specification-3.0/examples/v3.0/api-with-examples.yaml',
98+
__DIR__ . '/../../vendor/oai/openapi-specification-3.0/examples/v3.0/callback-example.yaml',
99+
__DIR__ . '/../../vendor/oai/openapi-specification-3.0/examples/v3.0/link-example.yaml',
100+
__DIR__ . '/../../vendor/oai/openapi-specification-3.0/examples/v3.0/petstore.yaml',
101+
__DIR__ . '/../../vendor/oai/openapi-specification-3.0/examples/v3.0/petstore-expanded.yaml',
102+
__DIR__ . '/../../vendor/oai/openapi-specification-3.0/examples/v3.0/uspto.yaml',
103103
];
104104

105105
// examples from https://github.com/Mermade/openapi3-examples

0 commit comments

Comments
 (0)