indentno/phpunit-pretty-print

Dataset name duplicated in test name

Closed this issue · 0 comments

If the name of a dataset contains upper-case characters, parts of the dataset name are added to the test name. For example:

    public function testProvider(): iterable
    {
        yield 'name=test' => ['test'];
        yield 'name=Test' => ['test'];
    }

    /**
     * @dataProvider testProvider
     */
    public function testNameIsPrinted(string $value): void
    {
        $this->assertNotEmpty($value);
    }

Will output:

 name is printed [name=test] [0.136s]
 name is printed test [name=Test] [0.000s]

Expected output:

 name is printed [name=test] [0.136s]
 name is printed [name=Test] [0.000s]