BEVERLY HILLS - Actress Amanda Bynes pleaded not guilty today to a misdemeanor charge of driving under the influence of alcohol or drugs stemming from an April 6 collision in which her BMW allegedly struck a sheriff's patrol car in West Hollywood.

Bynes' attorney entered the plea on her behalf because she was not required to appear in Beverly Hills Superior Court, and a July 18 pretrial hearing was set.

The DUI charge includes the allegation that Bynes refused a peace officer's request to submit to a chemical test.

Bynes was taken into custody about 3 a.m. April 6 after the black BMW she was driving struck a sheriff's patrol car at the intersection of Robertson and Santa Monica boulevards, sheriff's Lt. William Nash said.

The patrol car was stopped while northbound on Robertson Boulevard, preparing to turn right onto Santa Monica Boulevard, when Bynes allegedly attempted to pass to the right, according to Nash.

She was subsequently arrested on suspicion of driving under the influence of alcohol, the lieutenant said, and released later that morning.

The Thousand Oaks native starred in the TV series "What I Like About You" from 2002 to 2006, and in Nickelodeon's "The Amanda Show" (1999-2002). She has also appeared on the big screen in such movies as "What A Girl Wants" (2003) and "Easy A" (2010).

After she was charged Tuesday, Bynes wrote a message on her Twitter page to President Barack Obama, saying, "I don't drink. Please fire the cop who arrested me. I also don't hit and run. The end."