/** * {@inheritdoc} */ public function getCommentCount() { return \igorw\get_in($this->raw->get('comment'), ['total']); }
public function it_returns_the_comment_count(Issue $issue) { $issue->get('comment')->shouldBeCalled()->willReturn(['total' => 7]); $this->getCommentCount()->shouldReturn(7); }