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:
parent
ffbdaa80b1
commit
3a18ec0d51
@ -1789,6 +1789,29 @@ class AnnotationTest extends TestCase
|
||||
',
|
||||
'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',
|
||||
],
|
||||
];
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user