Phineas and Ferb/Analysis

In Summer Belongs to You, Heinz is told that he'll be tried and locked up. How exactly will Perry testify in a court of law?