File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments