ImboCliUnitTest\Command\GeneratePrivateKeyTest::testCanGenerateAPrivateKey PHP Method

testCanGenerateAPrivateKey() public method

    public function testCanGenerateAPrivateKey()
    {
        $commandTester = new CommandTester($this->command);
        $commandTester->execute(['command' => $this->command->getName()]);
        $this->assertRegExp('/^[a-zA-Z_\\-0-9]{8,}$/', trim($commandTester->getDisplay()));
    }