Exemple #1
0
 function testHistory()
 {
     $Svn = new Svn($this->__repos[1]);
     $File = new File($Svn->working . '/branches/demo_1.0.x.x/index.php', true);
     $File->write("this is a new php file with plain text tha is being changed");
     $result = $Svn->run('commit', array($Svn->working, '--message "Updating index.php"'));
     $result = $Svn->find('all', array('path' => '/branches/demo_1.0.x.x/index.php'));
     $this->assertEqual($result[0]['Repo']['revision'], 3);
     $this->assertEqual($result[0]['Repo']['message'], 'Updating index.php');
     $this->assertEqual($result[1]['Repo']['revision'], 2);
     $this->assertEqual($result[1]['Repo']['message'], 'Adding index.php');
     //var_dump($result);
     //var_dump($Svn->debug);
     //var_dump($Svn->response);
 }