A judge in Pennsylvania ruled Tuesday that there is sufficient evidence for a sexual assault case against comedian Bill Cosby to move to trial.

The arraignment is set for July, Bobby Allyn of member station WHYY reports.

Cosby, who has been accused by dozens of women of sexual assault, has been charged with three counts of aggravated indecent assault in the case, which involves a former Temple University employee who says Cosby assaulted her in his home in 2004. Each count carries five to 10 years in prison.

The accuser, Andrea Constand, did not appear in court, but parts of a statement she gave in 2005 were read during Tuesday's preliminary hearing in Norristown, Pa.

The statement "said that Constand felt dizzy, had blurred vision ... after Cosby allegedly gave her pills she thought were herbal medicine," Allyn reports. Cosby says the pills were Benadryl and the sexual contact was consensual.

Cosby's lawyer had argued that reading the statement was hearsay and that the defense should have a right to cross-examine the accuser, Allyn says. The judge rejected that argument, though, and said Cosby's legal team would be able to do so at trial.

Cosby, 78, appeared in court but did not speak, other than to say thank you when Magisterial District Judge Elizabeth McHugh wished him good luck following her ruling.

Cosby's defense attorneys had been trying get the charges tossed out since his arrest in December.

In 2005, as the Two-Way has reported, a Montgomery County prosecutor decided there wasn't enough evidence to bring charges in the case. The parties settled in 2006. New evidence, including a deposition given by Cosby, were enough to move the case forward in Pennsylvania this year.

Copyright 2016 NPR. To see more, visit http://www.npr.org/.