示例#1
0
 public function testNotFound()
 {
     $this->setExpectedException('\\RuntimeException', 'Revision "400" not found.');
     $results = array(new ShellResult(0, '<?xml version="1.0" encoding="UTF-8"?>' . PHP_EOL . '<log>' . PHP_EOL . 'svn: E195012: Unable to find repository location for ' . '\'http://example.com/repos/myproject/trunk\' in revision 400' . PHP_EOL, ''));
     $commandExecutor = new MockCommandExecutor(new MockCommandBuilder($results, '/usr/bin/svn'));
     $vcs = new SvnVcs($commandExecutor, new RepositoryConfig());
     $vcs->checkoutRevision('400');
 }