To be a witness to something in a dream, represents your need to observe and examine something more closely and carefully. You need to look at a situation more objectively. Alternatively, the dream suggests that you are watching life pass you by. Perhaps you are emotionally detached or an outcast of society.
To dream that you are testifying as a witness, indicates that you need to be accountable for your actions.