1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/hubzilla_ynh.git synced 2024-09-03 19:26:21 +02:00
hubzilla_ynh/sources/library/kzykhys/git/test/PHPGit/GitTest.php
2016-05-17 22:35:14 +05:30

33 lines
No EOL
588 B
PHP

<?php
use PHPGit\Git;
class GitTest extends PHPUnit_Framework_TestCase
{
public function testGetVersion()
{
$git = new Git();
$this->assertNotEmpty($git->getVersion());
}
/**
* @expectedException \PHPGit\Exception\GitException
*/
public function testInvalidGitBinary()
{
$git = new Git();
$git->setBin('/foo/bar');
$git->getVersion();
}
/**
* @expectedException \BadMethodCallException
*/
public function testBadMethodCall()
{
$git = new Git();
$git->foo();
}
}