swear to vs testify

swear to

testify

verb
  • To make a statement based on personal knowledge or faith. 

  • To make a declaration, or give evidence, under oath. 

How often have the words swear to and testify occurred in a corpus of books? (source: Google Ngram Viewer )