From 98b3a351dca737dcae4d2d6de776a5f1ea2fb441 Mon Sep 17 00:00:00 2001 From: Sebastian Bergmann Date: Tue, 21 Mar 2023 20:04:30 +0100 Subject: [PATCH] Add test for #5288 --- tests/end-to-end/regression/5288.phpt | 19 ++++++++++++++ .../regression/5288/Issue5288Test.php | 26 +++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 tests/end-to-end/regression/5288.phpt create mode 100644 tests/end-to-end/regression/5288/Issue5288Test.php diff --git a/tests/end-to-end/regression/5288.phpt b/tests/end-to-end/regression/5288.phpt new file mode 100644 index 00000000000..2b5ecb6b048 --- /dev/null +++ b/tests/end-to-end/regression/5288.phpt @@ -0,0 +1,19 @@ +--TEST-- +https://github.com/sebastianbergmann/phpunit/issues/5288 +--FILE-- + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ +use PHPUnit\Framework\TestCase; + +final class Issue5288Test extends TestCase +{ + public static function provider(): array + { + return [[true]]; + } + + /** + * @dataProvider provider() + */ + public function testOne(bool $value): void + { + $this->assertTrue($value); + } +}