attest vs swear to

attest

verb
  • To affirm to be correct, true, or genuine. 

  • To certify in an official capacity. 

  • To put under oath. 

  • To supply or be evidence of. 

  • To certify by signature or oath. 

swear to

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