File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -10,10 +10,12 @@ public function test165WrongErrorMessageWhenUsingAnUndefinedPropertyForASchemaOb
1010// $this->assertTrue($openapi->getErrors());
1111// $this->assertTrue($openapi->validate());
1212
13-
14- // exec('echo hiiiiiiiii', $output, $code);
15- exec ('bin/php-openapi validate tests/data/issue/165/spec.yml ' , $ output , $ code );
16- $ this ->assertSame ($ output , ['/path/to/php-openapi ' ]);
13+ // exec('echo hi', $output, $code);
14+ exec ('bin/php-openapi validate tests/data/issue/165/spec.yml 2>&1 ' , $ output , $ code );
15+ $ this ->assertSame ($ output , [
16+ 'OpenAPI v3.0 schema violations: ' ,
17+ '- [components.schemas.answer.properties.id] The property summary is not defined and the definition does not allow additional properties ' ,
18+ ]);
1719 // $this->assertSame(0, $code);
1820 }
1921}
You can’t perform that action at this time.
0 commit comments