/** * 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()); }
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')); }