Skip to content

Commit

Permalink
Use temporary directory instead of current working directory
Browse files Browse the repository at this point in the history
  • Loading branch information
kzykhys committed Jan 21, 2014
1 parent 276f77d commit 96b3071
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/PHPGit/Exception/GitExceptionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ class GitExceptionTest extends PHPUnit_Framework_TestCase
public function testException()
{
$git = new Git();
$git->setRepository(sys_get_temp_dir());
try {
$git->status();
$this->fail('Previous operation should fail');
Expand Down

0 comments on commit 96b3071

Please sign in to comment.