示例#1
0
 public function testGitCommitCommitterSignature()
 {
     $commit = new Git\Commit(new Git\Repository(PHP_GIT_FIXTURE_DIR . "/fixture.git"));
     $commit->setCommitter(new Git\Signature("Someone Else", "*****@*****.**", new DateTime("@1293956764")));
     $committer = $commit->getCommitter();
     $this->assertEquals("Someone Else", $committer->name);
     $this->assertEquals("*****@*****.**", $committer->email);
     $this->assertEquals(1293956764, $committer->time->getTimestamp());
 }