public function testShortlog() { $filesystem = new Filesystem(); $git = new Git(); $git->init($this->directory); $git->setRepository($this->directory); $git->config->set('user.name', 'Name One'); $git->config->set('user.email', '*****@*****.**'); $filesystem->dumpFile($this->directory . '/test.txt', ''); $git->add('test.txt'); $git->commit('1'); $filesystem->dumpFile($this->directory . '/test2.txt', ''); $git->add('test2.txt'); $git->commit('2'); $git->config->set('user.name', 'Name Two'); $git->config->set('user.email', '*****@*****.**'); $filesystem->dumpFile($this->directory . '/test3.txt', ''); $git->add('test3.txt'); $git->commit('3'); $shortlog = $git->shortlog(); $this->assertCount(2, $shortlog); $this->assertCount(2, $shortlog['Name One <*****@*****.**>']); $this->assertCount(1, $shortlog['Name Two <*****@*****.**>']); $this->assertEquals('1', $shortlog['Name One <*****@*****.**>'][0]['subject']); }