Skip to content

Commit

Permalink
Add one more test
Browse files Browse the repository at this point in the history
  • Loading branch information
fluffycondor committed Dec 18, 2022
1 parent a8b249b commit 6f230ed
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tests/CoreStubsTest.php
Expand Up @@ -101,7 +101,7 @@ public function providerValidCodeParse(): iterable
'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
/**
Expand All @@ -114,5 +114,14 @@ function foo(string $foo): string
}
',
];
yield 'sprintf yields a string for possible empty string param' => [
'<?php
$a = sprintf("%s", "");
',
'assertions' => [
'$a===' => 'string',
]
];
}
}

0 comments on commit 6f230ed

Please sign in to comment.