BetterReflectionTest\SourceLocator\Type\SingleFileSourceLocatorTest::testConstructorThrowsExceptionIfFileIsNotAFile PHP Method

testConstructorThrowsExceptionIfFileIsNotAFile() public method

    public function testConstructorThrowsExceptionIfFileIsNotAFile()
    {
        $this->expectException(InvalidFileLocation::class);
        $this->expectExceptionMessage('Is not a file');
        new SingleFileSourceLocator(__DIR__);
    }