Skip to content

Commit

Permalink
test: Test values doesn't matter for atLeast and atMost formatters
Browse files Browse the repository at this point in the history
  • Loading branch information
tienvx committed May 11, 2024
1 parent 6f2b603 commit 825cb86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public function testNotSupportedMatcher(): void
$this->formatter->format($matcher);
}

#[TestWith([new MaxType([], 2), '"atMost(2)"'])]
#[TestWith([new MaxType(['example value'], 2), '"atMost(2)"'])]
public function testFormat(MatcherInterface $matcher, string $expression): void
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public function testNotSupportedMatcher(): void
$this->formatter->format($matcher);
}

#[TestWith([new MinType([], 1), '"atLeast(1)"'])]
#[TestWith([new MinType(['example value'], 1), '"atLeast(1)"'])]
public function testFormat(MatcherInterface $matcher, string $expression): void
{
Expand Down

0 comments on commit 825cb86

Please sign in to comment.