Inheritance: extends PHPUnit_Framework_TestCase
コード例 #1
0
 public function testStoreDomainCertificate()
 {
     parent::testStoreDomainCertificate();
     $this->assertEquals(self::$certPem . "\n", $this->backup->read('certs/example.com/cert.pem'));
     $this->assertEquals(self::$issuerCertPem . "\n", $this->backup->read('certs/example.com/chain.pem'));
     $this->assertEquals(self::$certPem . "\n" . self::$issuerCertPem . "\n", $this->backup->read('certs/example.com/fullchain.pem'));
     $this->assertEquals(self::$certPem . "\n" . self::$issuerCertPem . "\nprivate\n", $this->backup->read('certs/example.com/combined.pem'));
 }
コード例 #2
0
 public function testStoreDomainCertificate()
 {
     parent::testStoreDomainCertificate();
     $this->assertFalse($this->backup->has('certs/example.com/cert.pem'));
     $this->assertFalse($this->backup->has('certs/example.com/chain.pem'));
     $this->assertFalse($this->backup->has('certs/example.com/fullchain.pem'));
     $this->assertFalse($this->backup->has('certs/example.com/combined.pem'));
 }