Skip to content

Commit 6ec7db6

Browse files
committed
Stub
1 parent 08a7a05 commit 6ec7db6

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

tests/IssueTest.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)