mirror of
https://github.com/danog/psalm.git
synced 2024-11-26 20:34:47 +01:00
Add one more test
This commit is contained in:
parent
a8b249b786
commit
6f230edc8b
@ -101,7 +101,7 @@ class CoreStubsTest extends TestCase
|
||||
'ignored_issues' => ['RedundantCondition'],
|
||||
'php_version' => '8.0',
|
||||
];
|
||||
yield 'sprintf yields a non-empty-string' => [
|
||||
yield 'sprintf yields a non-empty-string for non-empty-string value' => [
|
||||
'<?php
|
||||
|
||||
/**
|
||||
@ -114,5 +114,14 @@ class CoreStubsTest extends TestCase
|
||||
}
|
||||
',
|
||||
];
|
||||
yield 'sprintf yields a string for possible empty string param' => [
|
||||
'<?php
|
||||
|
||||
$a = sprintf("%s", "");
|
||||
',
|
||||
'assertions' => [
|
||||
'$a===' => 'string',
|
||||
]
|
||||
];
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user