We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
TestCase->dataSetAsString()
1 parent b427d6d commit 5f7eccbCopy full SHA for 5f7eccb
src/Framework/TestCase.php
@@ -843,17 +843,15 @@ final public function dataName(): int|string
843
*/
844
final public function dataSetAsString(): string
845
{
846
- $buffer = '';
847
-
848
if ($this->data !== []) {
849
if (is_int($this->dataName)) {
850
- $buffer .= sprintf(' with data set #%d', $this->dataName);
851
- } else {
852
- $buffer .= sprintf(' with data set "%s"', $this->dataName);
+ return sprintf(' with data set #%d', $this->dataName);
853
}
+
+ return sprintf(' with data set "%s"', $this->dataName);
854
855
856
- return $buffer;
+ return '';
857
858
859
/**
0 commit comments