Skip to content

Commit 06c31ea

Browse files
committed
Fix test
1 parent ff2bf12 commit 06c31ea

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/Exception/InvalidArgumentExceptionTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ public function testExceptionFromNotValidParameterConstructor()
3737
*/
3838
public function testStringify($value, $expected)
3939
{
40-
$this->assertEquals(InvalidArgumentException::stringify($value), $expected);
40+
$rM = new \ReflectionMethod(InvalidArgumentException::class, 'stringify');
41+
$rM->setAccessible(true);
42+
43+
$this->assertEquals($rM->invoke(null, $value), $expected);
4144
}
4245

4346
/**

0 commit comments

Comments
 (0)