public function testBranchDoesntExist() { $this->setExpectedException('\\RuntimeException', 'Branch named "feat-new-badness" not found.'); $results = array(new ShellResult(1, '' . PHP_EOL, 'svn: warning: W155010: The node \'/path/to/repo/branches/feat-new-badness\' was not found.' . PHP_EOL . 'svn: E200009: Could not list all targets because some targets don\'t exist')); $commandExecutor = new MockCommandExecutor(new MockCommandBuilder($results, '/usr/bin/svn')); $vcs = new SvnVcs($commandExecutor, new RepositoryConfig()); $vcs->changeBranch('feat-new-badness'); }