Ejemplo n.º 1
0
 function testDelete()
 {
     $Git->logReponse = true;
     $Git = new Git($this->__repos[1]);
     $this->assertTrue($Git->create());
     $this->assertTrue(file_exists(TMP . 'tests/git/repo/test.git'));
     $this->assertTrue(file_exists(TMP . 'tests/git/working/test/master/.git'));
     $Git->run('branch new');
     $Git->update();
     $Git->branch('new', true);
     $this->assertTrue($Git->delete());
     $Git->branch('master', true);
     $results = $Git->find('branches');
     $this->assertEqual($results, array('master'));
     //pr($Git->debug);
     //pr($Git->response);
     //die();
 }
Ejemplo n.º 2
0
 /**
  * Test
  *
  * @return void
  */
 public function testUpdate()
 {
     $this->assertTrue($this->object->update());
 }