BetterReflectionTest\SourceLocator\Type\SingleFileSourceLocatorTest::testConstructorThrowsExceptionIfEmptyFileGiven PHP Метод

testConstructorThrowsExceptionIfEmptyFileGiven() публичный Метод

    public function testConstructorThrowsExceptionIfEmptyFileGiven()
    {
        $this->expectException(InvalidFileLocation::class);
        $this->expectExceptionMessage('Filename was empty');
        new SingleFileSourceLocator('');
    }