Skip to content
This repository has been archived by the owner on Sep 6, 2020. It is now read-only.

Commit

Permalink
Using explicit file paths.
Browse files Browse the repository at this point in the history
  • Loading branch information
kherge committed Mar 13, 2013
1 parent 0caca10 commit e098b28
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,21 @@ public function testExecute()

$openssl = new OpenSsl();

$openssl->createPrivateKeyFile('private.key', 'phpunit');
$private = $this->file();
$public = $this->file();

$openssl->createPrivateKeyFile($private, 'phpunit');

$this->tester->execute(array(
'command' => self::COMMAND,
'private' => 'private.key',
'--out' => 'test.key',
'private' => $private,
'--out' => $public,
'--prompt' => true
), array(
'verbosity' => OutputInterface::VERBOSITY_VERBOSE
));

$this->assertRegExp('/PUBLIC KEY/', file_get_contents('test.key'));
$this->assertRegExp('/PUBLIC KEY/', file_get_contents($public));
}
}

0 comments on commit e098b28

Please sign in to comment.