Skip to content

Commit

Permalink
Add test for "size-class" helper
Browse files Browse the repository at this point in the history
  • Loading branch information
thekid committed Mar 2, 2024
1 parent 6c6567c commit 857bf20
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/test/php/de/thekid/dialog/unittest/HelpersTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]));
}
}

0 comments on commit 857bf20

Please sign in to comment.