コード例 #1
0
ファイル: CallerTest.php プロジェクト: ocubom/GitElephant
 /**
  * get output test
  */
 public function testGetOutput()
 {
     $binary = new GitBinary();
     $caller = new Caller($binary, $this->getRepository()->getPath());
     $mainCommand = new MainCommand();
     $caller->execute($mainCommand->init());
     $this->assertRegExp(sprintf('/^(.*)%s/', str_replace('/', '\\/', $this->getRepository()->getPath())), $caller->getOutput());
 }
コード例 #2
0
ファイル: CommitTest.php プロジェクト: ocubom/GitElephant
 public function setUp()
 {
     $this->initRepository();
     $mainCommand = new MainCommand();
     $this->getCaller()->execute($mainCommand->init());
     $this->addFile('foo');
     $this->getCaller()->execute($mainCommand->add());
     $this->getCaller()->execute($mainCommand->commit('first commit'));
 }