Skip to content

Commit

Permalink
test: fix git test
Browse files Browse the repository at this point in the history
  • Loading branch information
adhocore committed Sep 20, 2018
1 parent ef48c80 commit bb27989
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions tests/Util/GitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,11 @@ class GitTest extends TestCase
{
public function testGetConfig()
{
$git = new Git;
$git = new Git;
$conf = $git->getConfig();

$this->assertArraySubset([
'core.repositoryformatversion' => '0',
'core.filemode' => 'true',
'core.bare' => 'false',
'core.logallrefupdates' => 'true',
'remote.origin.url' => 'https://github.com/adhocore/phint.git',
'remote.origin.fetch' => '+refs/heads/master:refs/remotes/origin/master',
'' => '',
], $git->getConfig());
$this->assertArrayHasKey('remote.origin.url', $conf);
$this->assertContains('adhocore/phint.git', $conf['remote.origin.url']);
}

public function testGetConfigOnSpecificKey()
Expand Down

0 comments on commit bb27989

Please sign in to comment.