Skip to content

Commit

Permalink
Add test for prefix of just '0'
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterOdin authored and sebastianbergmann committed Jul 5, 2019
1 parent c2e938d commit 4c7d5f6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/unit/Framework/Constraint/StringStartsWithTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ public function testConstraintStringStartsWithCorrectNumericValueAndReturnResult
$this->assertTrue($constraint->evaluate('0E1zzz', '', true));
}

public function testConstraintStringStartsWithCorrectSingleZeroAndReturnResult(): void
{
$constraint = new StringStartsWith('0');

$this->assertTrue($constraint->evaluate('0ABC', '', true));
}

public function testConstraintStringStartsWithNotCorrectNumericValueAndReturnResult(): void
{
$constraint = new StringStartsWith('0E1');
Expand Down

0 comments on commit 4c7d5f6

Please sign in to comment.