protected function assertRemoteBranch(GitWorkingCopy $repository, $branch) { $branches = $repository->getBranches()->remote(); $this->assertArrayHasKey($branch, array_flip($branches)); }