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