public function testWriteTo() { $path = '/tmp/certificate_test_' . time(); $certificate = new Certificate('test'); $certificate->writeTo($path); $this->assertFileExists($path); $this->assertEquals('test', file_get_contents($path)); }
public function testWriteTo() { $path = '/tmp/certificate_test_' . time(); $certificate = new Certificate('test'); $certificate->writeTo($path); $this->assertFileExists($path); $this->assertEquals('test', file_get_contents($path)); }