blob: c9aceeb13a6eac37f3e1167ecdd7aaf0ff70f86f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
<?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();
}
}
|