public function test_it_contains_an_hand() { $hand = new Hand(...StaticFixtures::three_of_a_kind()); $score = new Score($hand, 10); $this->assertEquals($hand, $score->getHand()); $this->assertEquals(10, $score->getScore()); }
/** * @return array */ public function hands() { return [[new Hand(...StaticFixtures::one_pair()), new Hand(...StaticFixtures::three_of_a_kind_matching_pair()), new Score(new Hand(...StaticFixtures::one_pair()), (2 + 2) * OnePair::MULTIPLIER)], [new Hand(...StaticFixtures::three_of_a_kind()), new Hand(...StaticFixtures::three_of_a_kind_matching_pair()), new Score(new Hand(...StaticFixtures::three_of_a_kind()), (2 + 2) * OnePair::MULTIPLIER)], [new Hand(...StaticFixtures::getFlush()), null, null]]; }
/** * @return array */ public function hands() { return [[new Hand(...StaticFixtures::two_pairs()), new Hand(...StaticFixtures::two_pairs_first_pair()), new Hand(...StaticFixtures::two_pairs_second_pair()), new Score(new Hand(...StaticFixtures::two_pairs()), (2 + 2 + 4 + 4) * TwoPairs::MULTIPLIER)], [new Hand(...StaticFixtures::three_of_a_kind()), new Hand(...StaticFixtures::three_of_a_kind_matching_pair()), null, null]]; }
/** * @return array */ public function hands() { return [[new Card(2, Suit::spades()), new Hand(...StaticFixtures::one_pair()), new Hand(...StaticFixtures::two_pairs_first_pair())], [new Card(2, Suit::spades()), new Hand(...StaticFixtures::three_of_a_kind()), new Hand(...StaticFixtures::three_of_a_kind_actual_three())], [new Card(9, Suit::spades()), new Hand(...StaticFixtures::three_of_a_kind()), null]]; }
/** * @return array */ public function hands() { return [[new Hand(...StaticFixtures::one_pair()), 2, new Hand(...StaticFixtures::three_of_a_kind_matching_pair()), new Hand(...StaticFixtures::three_of_a_kind_matching_pair())], [new Hand(...StaticFixtures::three_of_a_kind()), 2, new Hand(...StaticFixtures::three_of_a_kind_matching_pair()), new Hand(...StaticFixtures::three_of_a_kind_matching_pair())], [new Hand(...StaticFixtures::three_of_a_kind()), 2, null, null]]; }
/** * @return array */ public function hands() { return [[new Hand(...StaticFixtures::one_pair()), new Score(new Hand(...StaticFixtures::one_pair()), 6 * HighCard::MULTIPLIER)], [new Hand(...StaticFixtures::three_of_a_kind()), new Score(new Hand(...StaticFixtures::three_of_a_kind()), 10 * HighCard::MULTIPLIER)]]; }
/** * @return array */ public function hands() { return [[new Hand(...StaticFixtures::three_of_a_kind()), new Hand(...StaticFixtures::three_of_a_kind_actual_three()), new Score(new Hand(...StaticFixtures::three_of_a_kind()), (2 + 2 + 2) * ThreeOfAKind::MULTIPLIER)], [new Hand(...StaticFixtures::one_pair()), null, null]]; }