public function testConstructorThrowsExceptionIfFileDoesNotExist() { $this->expectException(InvalidFileLocation::class); $this->expectExceptionMessage('File does not exist'); new SingleFileSourceLocator('sdklfjdfslsdfhlkjsdglkjsdflgkj'); }