Skip to content

Commit

Permalink
Reintroduce expected exception assertion that got lost.
Browse files Browse the repository at this point in the history
  • Loading branch information
beberlei committed Apr 18, 2021
1 parent 3f6cb5c commit 2f73d85
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/Assert/Tests/AssertTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2011,6 +2011,9 @@ public function providerValidBetweenExclusive(): array

public function testStringifyTruncatesStringValuesLongerThan100CharactersAppropriately()
{
$this->expectException('Assert\AssertionFailedException');
$this->expectExceptionCode(\Assert\Assertion::INVALID_FLOAT);

$string = str_repeat('1234567890', 11);

$this->assertTrue(Assertion::float($string));
Expand Down

0 comments on commit 2f73d85

Please sign in to comment.