SAN JOSE — A lawyer representing two former male Yahoo Inc. employees faced a string of skeptical questions Wednesday afternoon from the judge overseeing his clients’ gender discrimination case.

Palo Alto-based attorney Jon Parsons claims that his clients—Gregory Anderson and Scott Ard—were pushed out of the company by female managers who went too far to promote and hire women. He’s also argued that Yahoo’s forced ranking system, designed to push out low performers and managers who didn’t add sufficient value to the company, was a pretense to conduct mass layoffs in violation of state and federal laws designed to protect workers.