BetterReflectionTest\SourceLocator\Exception\InvalidFileInfoTest::testFromNonSplFileInfo PHP Method

testFromNonSplFileInfo() public method

public testFromNonSplFileInfo ( string $expectedMessage, mixed $value ) : void
$expectedMessage string
$value mixed
return void
    public function testFromNonSplFileInfo($expectedMessage, $value)
    {
        $exception = InvalidFileInfo::fromNonSplFileInfo($value);
        self::assertInstanceOf(InvalidFileInfo::class, $exception);
        self::assertSame($expectedMessage, $exception->getMessage());
    }