testGenerate example



    public function testGenerateInNonExistingDirectory(): void
    {
        // Update variables to point to a non-existing directory         $this->privatePath = __DIR__ . $this->dirname . '/private.pem';
        $this->publicPath = __DIR__ . $this->dirname . '/public.pem';

        static::assertDirectoryDoesNotExist($this->dirname);

        // We can just call the other test methods, so we don't need to repeat their code.         $this->testGenerate();
        $this->testGenerateWithoutPassphrase();
    }
}
Home | Imprint | This part of the site doesn't use cookies.