Skip to content

Commit

Permalink
Test creation of non-existing bundle file
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanDotPro committed Sep 18, 2012
1 parent 2ceefa9 commit db964a1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/SslurpTest/CaRootPemBundleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,12 @@ public function testWillFetchMozillaCertData()
$this->assertNotNull($this->bundle->getContent());
$this->assertInstanceOf('Sslurp\MozillaCertData', $this->bundle->getMozillaCertData());
}

public function testWillCreateBundleFileIfItDoesNotExist()
{
$file = sys_get_temp_dir() . '/ca-bundle.pem';
$this->assertFileNotExists($file);
$this->bundle = new CaRootPemBundle($file, new MozillaCertData);
$this->assertFileExists($file);
}
}

0 comments on commit db964a1

Please sign in to comment.