Skip to content

Commit 2f73d85

Browse files
committed
Reintroduce expected exception assertion that got lost.
1 parent 3f6cb5c commit 2f73d85

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/Assert/Tests/AssertTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2011,6 +2011,9 @@ public function providerValidBetweenExclusive(): array
20112011

20122012
public function testStringifyTruncatesStringValuesLongerThan100CharactersAppropriately()
20132013
{
2014+
$this->expectException('Assert\AssertionFailedException');
2015+
$this->expectExceptionCode(\Assert\Assertion::INVALID_FLOAT);
2016+
20142017
$string = str_repeat('1234567890', 11);
20152018

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

0 commit comments

Comments
 (0)