File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -18,17 +18,11 @@ class GitTest extends TestCase
18
18
{
19
19
public function testGetConfig ()
20
20
{
21
- $ git = new Git ;
21
+ $ git = new Git ;
22
+ $ conf = $ git ->getConfig ();
22
23
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 ' ]);
32
26
}
33
27
34
28
public function testGetConfigOnSpecificKey ()
You can’t perform that action at this time.
0 commit comments