From 857bf205da94f73c6098640d2143e0dc8ebeb8a4 Mon Sep 17 00:00:00 2001 From: Timm Friebe Date: Sat, 2 Mar 2024 09:41:21 +0100 Subject: [PATCH] Add test for "size-class" helper --- src/test/php/de/thekid/dialog/unittest/HelpersTest.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/test/php/de/thekid/dialog/unittest/HelpersTest.php b/src/test/php/de/thekid/dialog/unittest/HelpersTest.php index fc82f7a..b035b5d 100755 --- a/src/test/php/de/thekid/dialog/unittest/HelpersTest.php +++ b/src/test/php/de/thekid/dialog/unittest/HelpersTest.php @@ -51,4 +51,9 @@ public function dataset() { ]]) ); } + + #[Test, Values([[0, 'empty'], [1, 'single'], [2, 'even'], [3, 'odd']])] + public function size_class($size, $expected) { + Assert::equals($expected, $this->helpers['size-class'](null, null, [$size])); + } } \ No newline at end of file