/** * @param \Newscoop\Entity\Repository\CommentRepository $commentRepository */ public function it_should_get_all_replies($commentRepository) { $commentRepository->getDirectReplies(33)->willReturn(array(20)); $commentRepository->getDirectReplies(20)->willReturn(array()); $this->getAllReplies(33, $commentRepository)->shouldReturn(array(33, 20)); }