From e098b28dccc35c9d3ce793e4efa309d1fc69dc1b Mon Sep 17 00:00:00 2001 From: Kevin Herrera Date: Wed, 13 Mar 2013 16:18:53 -0700 Subject: [PATCH] Using explicit file paths. --- .../Box/Console/Command/OpenSsl/ExtractPublicTest.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/tests/KevinGH/Box/Console/Command/OpenSsl/ExtractPublicTest.php b/src/tests/KevinGH/Box/Console/Command/OpenSsl/ExtractPublicTest.php index 90457188..77c48d29 100644 --- a/src/tests/KevinGH/Box/Console/Command/OpenSsl/ExtractPublicTest.php +++ b/src/tests/KevinGH/Box/Console/Command/OpenSsl/ExtractPublicTest.php @@ -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)); } }