diff --git a/tests/Assert/Tests/AssertTest.php b/tests/Assert/Tests/AssertTest.php index 4e2b844a..fbf1493d 100644 --- a/tests/Assert/Tests/AssertTest.php +++ b/tests/Assert/Tests/AssertTest.php @@ -1555,6 +1555,15 @@ public function providerValidBetweenExclusive() array(new \DateTime('today'), new \DateTime('yesterday'), new \DateTime('tomorrow')), ); } + + public function testStringifyTruncatesStringValuesLongerThan100CharactersAppropriately() + { + $string = str_repeat('1234567890', 11); + + $this->setExpectedException('Assert\AssertionFailedException', '1234567...', Assertion::INVALID_FLOAT); + + $this->assertTrue(Assertion::float($string)); + } } class ChildStdClass extends \stdClass