Yes. The phpbb tests don't explicitly declare $db. Declaring them isn't a requirement here, but since we're writing this to be an example, we should declare it and comment on it so it's easier for others to follow.