Files
faveo/vendor/codacy/coverage/tests/Codacy/Coverage/Util/GitClientTest.php
2019-04-19 14:37:37 +05:30

13 lines
308 B
PHP

<?php
use Codacy\Coverage\Util\GitClient;
class GitClientTest extends \PHPUnit\Framework\TestCase
{
public function testGetHashOfLastCommit()
{
$gitClient = new GitClient(getcwd());
$hash = $gitClient->getHashOfLatestCommit();
$this->assertEquals(40, strlen($hash));
}
}