A dog has chased a cat up a tree.