If Tioga Pass is closed, odds are that CA-108 will also be closed, as will be CA-120 between Benton and Lee Vining. The closest pass that is kept open in the winter is CA-88. If this is a winter trip, the most reasonable way would be I-15 through LV to Barstow, then CA-58 to Bakersfield, then CA-99 to Fresno to CA-41 to the south entrance of Yosemite. This is over 700 miles and is a full 2 day trip but most of it is on freeway quality roads.

If all the passes are still open, then the Tonopah route is the quickest. There are not a lot of gas stations along that route, keep an eye on your fuel gauge. FILL up in Tonopah, that's the last gas before California prices.