Skip to content

Commit

Permalink
Stub
Browse files Browse the repository at this point in the history
  • Loading branch information
SOHELAHMED7 committed Jan 23, 2025
1 parent 08a7a05 commit 6ec7db6
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/IssueTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@ public function test165WrongErrorMessageWhenUsingAnUndefinedPropertyForASchemaOb
// $this->assertTrue($openapi->getErrors());
// $this->assertTrue($openapi->validate());


// exec('echo hiiiiiiiii', $output, $code);
exec('bin/php-openapi validate tests/data/issue/165/spec.yml', $output, $code);
$this->assertSame($output, ['/path/to/php-openapi']);
// exec('echo hi', $output, $code);
exec('bin/php-openapi validate tests/data/issue/165/spec.yml 2>&1', $output, $code);
$this->assertSame($output, [
'OpenAPI v3.0 schema violations:',
'- [components.schemas.answer.properties.id] The property summary is not defined and the definition does not allow additional properties',
]);
// $this->assertSame(0, $code);
}
}

0 comments on commit 6ec7db6

Please sign in to comment.