Beispiel #1
0
 public function testRm()
 {
     $filesystem = new Filesystem();
     $git = new Git();
     $git->init($this->directory);
     $git->setRepository($this->directory);
     $filesystem->dumpFile($this->directory . '/README.md', 'foo');
     $filesystem->dumpFile($this->directory . '/bin/test.php', 'foo');
     $git->add(array('README.md', 'bin/test.php'));
     $git->commit('Initial commit');
     $git->rm('README.md');
     $git->rm('bin', array('recursive' => true));
     $this->assertFileNotExists($this->directory . '/README.md');
 }