/**
  * Test deleteCertificate().
  *
  * @param Certificate $certificate
  *
  * @dataProvider certificateProvider
  */
 public function testDeleteCertificate(Certificate $certificate)
 {
     $this->_builder->saveCertificate($certificate);
     $paths = array($certificate->getCertificateFilePath(), $certificate->getCertificateKeyFilePath(), $certificate->getCACertificateFilePath(), $certificate->getCertificateChainFilePath());
     $this->_builder->deleteCertificate($certificate);
     foreach ($paths as $path) {
         if (!empty($path)) {
             $this->assertFileNotExists($path);
         }
     }
 }