mirror of
https://github.com/PGYER/codefever.git
synced 2026-05-08 14:36:58 +08:00
20 lines
872 B
PHP
Executable File
20 lines
872 B
PHP
Executable File
<?php
|
|
namespace Git;
|
|
|
|
use PHPUnit\Framework\TestCase;
|
|
use service\Git\Command;
|
|
|
|
class GetCommitListFromRemoteTest extends TestCase {
|
|
public function testGetCommitListFromRemote()
|
|
{
|
|
$expected = TESTING_COMMIT_HASH . ' 8a55f5e6e34222b314458aa6dfd560a048946b32 git@git.pgyer.com/test.git 8a55f5e6e34222b314458aa6dfd560a048946b33 {sha:%H,log:%s,body:%b,email:%ae,time:%at}';
|
|
$actual = Command::getCommitListFromRemote(
|
|
TESTING_COMMIT_HASH,
|
|
'8a55f5e6e34222b314458aa6dfd560a048946b32',
|
|
'git@git.pgyer.com/test.git',
|
|
'8a55f5e6e34222b314458aa6dfd560a048946b33');
|
|
|
|
$this->assertSame($expected, $actual);
|
|
}
|
|
}
|