mirror of
https://github.com/PGYER/codefever.git
synced 2026-05-08 06:28:37 +08:00
16 lines
547 B
PHP
Executable File
16 lines
547 B
PHP
Executable File
<?php
|
|
namespace Git;
|
|
|
|
use PHPUnit\Framework\TestCase;
|
|
use service\Git\Command;
|
|
|
|
class GetCommitLogTest extends TestCase {
|
|
public function testGetCommitLog()
|
|
{
|
|
$expected = 'log master -1 --pretty="{log:%s,time:%at,sha:%H,email:%ae,parent:%P}"';
|
|
$actual = Command::getCommitLog('master');
|
|
|
|
$this->assertSame($expected, $actual);
|
|
}
|
|
}
|