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