8 class GitTest
extends UnitTestCase
12 public function setUp() {
13 $this->git
= new GitPartialMock();
16 function testTransformArgs() {
17 $result = $this->git
->transformArgs(array(
24 '-v', '-sours', '--no-commit', '--message=test',
26 $this->assertIdentical($result, $expect);
30 $git = new GitPartialMock();
31 $git->__construct('dir');
32 $git->expectOnce('execute', array(array('git', 'cherry-pick', '-s', 'f533ebca', '--no-commit')));
33 $git->setReturnValue('execute', $expect = 'Result');
34 $result = $git->cherryPick('f533ebca', array('--no-commit', 's' => true));
35 $this->assertIdentical($result, $expect);
38 // now, for the ported tests!
39 function testCallProcessCallsExecute() {