mirror of
https://github.com/klaussilveira/gitlist.git
synced 2025-11-17 19:20:56 +01:00
Fixing broken tests
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user