bacda4f8a26f9fc1d918c7179b2f0b3bb7482ffc
8 class GitTest
extends UnitTestCase
10 function testTransformArgs() {
12 $result = $git->transformArgs(array(
19 '-v', '-sours', '--no-commit', '--message=test',
21 $this->assertIdentical($result, $expect);
24 function testEscape() {
26 $result = $git->escape("foo's");
27 $expect = "foo\\\\'s";
28 $this->assertIdentical($result, $expect);
32 $git = new GitPartialMock();
33 $git->__construct('dir');
34 $git->expectOnce('execute', array('git cherry-pick -s f533ebca --no-commit'));
35 $git->setReturnValue('execute', $expect = 'Result');
36 $result = $git->cherryPick('f533ebca', array('--no-commit', 's' => true));
37 $this->assertIdentical($result, $expect);