1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00

Add one more test

This commit is contained in:
fluffycondor 2022-12-18 16:04:16 +06:00
parent a8b249b786
commit 6f230edc8b

View File

@ -101,7 +101,7 @@ class CoreStubsTest extends TestCase
'ignored_issues' => ['RedundantCondition'], 'ignored_issues' => ['RedundantCondition'],
'php_version' => '8.0', 'php_version' => '8.0',
]; ];
yield 'sprintf yields a non-empty-string' => [ yield 'sprintf yields a non-empty-string for non-empty-string value' => [
'<?php '<?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',
]
];
} }
} }