Skip to content

Commit 5457f65

Browse files
committed
WIP
1 parent 89ebc8c commit 5457f65

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

tests/IssueTest.php

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,15 @@ class IssueTest extends \PHPUnit\Framework\TestCase
77
// https://github.com/cebe/php-openapi/issues/165
88
public function test165WrongErrorMessageWhenUsingAnUndefinedPropertyForASchemaObjectPropertyDefinition()
99
{
10-
$openapi = Reader::readFromYamlFile(__DIR__.'/data/issue/165/spec.yml');
11-
$this->assertTrue($openapi->validate());
10+
// $openapi = Reader::readFromYamlFile(__DIR__.'/data/issue/165/spec.yml');
11+
// $openapi->performValidation();
12+
// $this->assertTrue($openapi->getErrors());
13+
// $this->assertTrue($openapi->validate());
14+
15+
16+
// exec('pwd', $output, $code);
17+
exec('bin/php-openapi validate tests/data/issue/165/spec.yml', $output, $code);
18+
$this->assertSame($output, ['/path/to/php-openapi']);
19+
// $this->assertSame(0, $code);
1220
}
1321
}

0 commit comments

Comments
 (0)