Fixing broken tests

This commit is contained in:
Klaus Silveira
2012-06-07 01:40:28 -03:00
parent 167c5b83cc
commit ec85e90e84

View File

@@ -1,5 +1,7 @@
<?php
require_once __DIR__.'/../vendor/silex.phar';
use Git\Client;
use Git\Repository;
@@ -52,7 +54,10 @@ class ClientTest extends PHPUnit_Framework_TestCase
$this->markTestSkipped('There are no write permissions in order to create test repositories.');
}
$this->client = new Client('/usr/bin/git');
$app = new Silex\Application();
$app['git.client'] = '/usr/bin/git';
$app['hidden'] = array();
$this->client = new Client($app);
}
/**