1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 05:41:20 +01:00

Add expected behaviour tests

This commit is contained in:
Jack Robertson 2021-07-25 10:42:40 +01:00
parent ffbdaa80b1
commit 3a18ec0d51

View File

@ -1789,6 +1789,29 @@ class AnnotationTest extends TestCase
', ',
'error_message' => 'PossiblyInvalidDocblockTag', 'error_message' => 'PossiblyInvalidDocblockTag',
], ],
'unterminatedParentheses' => [
'<?php
/** @return ( */
function f() {}
',
'error_message' => 'InvalidDocblock',
],
'emptyParentheses' => [
'<?php
/** @return () */
function f() {}
',
'error_message' => 'InvalidDocblock',
],
'unbalancedParentheses' => [
"<?php
/** @return ((string) */
function f(): string {
return '';
}
",
'error_message' => 'InvalidDocblock',
],
]; ];
} }
} }