/** * @param \Countable $countable */ function it_does_not_score_if_argument_countable_object_has_wrong_count($countable) { $countable->count()->willReturn(3); $this->scoreArgument($countable)->shouldReturn(false); }
/** * Checks a countable obj. * * @since 141004 * @package s2Member\List_Servers * * @param Countable $countable Countable obj. * * @return bool True if has `count()` > `0`. */ public static function count($countable) { return $countable instanceof Countable && $countable->count(); }