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