Example #1
0
 /**
  * @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]];
 }
Example #2
0
 public function test_it_contains_up_to_five_cards()
 {
     $hand = new Hand(...StaticFixtures::getFlush());
     $this->assertLessThanOrEqual(5, count($hand->getCards()));
 }