Kanye West appeared in court and repeatedly yawned and closed his eyes for long stretches while testifying in his trial.