Exemplo n.º 1
0
 /**
  * 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());
 }
Exemplo n.º 2
0
 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'));
 }