phpunit icon indicating copy to clipboard operation
phpunit copied to clipboard

New attribute TestWithArray

Open sartor opened this issue 6 months ago • 0 comments

New attribute TestWithArray introduced. More compact version of existing TestWith for many cases.

Example:

    #[TestWithArray([
        'odd' => [1, true],
        'even' => [2, false],
    ])]
    public function testNumbers($number, $isOdd): void
    {
        $this->assertSame($isOdd, $number % 2 === 1);
    }

sartor avatar Jun 18 '25 17:06 sartor