Skip to content

Commit bb27989

Browse files
committed
test: fix git test
1 parent ef48c80 commit bb27989

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

tests/Util/GitTest.php

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,11 @@ class GitTest extends TestCase
1818
{
1919
public function testGetConfig()
2020
{
21-
$git = new Git;
21+
$git = new Git;
22+
$conf = $git->getConfig();
2223

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

3428
public function testGetConfigOnSpecificKey()

0 commit comments

Comments
 (0)