Exemplo n.º 1
0
 public function testConfigGetAllOnInitializedRepository()
 {
     $values = $this->initializedGitRepository->config()->file('local')->getAll('gitphp.test2')->execute();
     $values = explode("\n", $values);
     $values = array_map('trim', $values);
     $values = array_filter($values);
     $this->assertEquals(array('aa123', 'ab234', 'ac345', 'bb234'), $values);
     $values = $this->initializedGitRepository->config()->file('local')->getAll('gitphp.test2', '^a.+3.+$')->execute();
     $values = explode("\n", $values);
     $values = array_map('trim', $values);
     $values = array_filter($values);
     $this->assertEquals(array('ab234', 'ac345'), $values);
 }