コード例 #1
0
 public function testClear()
 {
     $cardCollection = new CardCollection(TestDataProvider::getCardsArray());
     $this->assertNotSame(0, $cardCollection->count());
     $cardCollection->clear();
     $this->assertSame(0, $cardCollection->count());
 }
コード例 #2
0
ファイル: GameTable.php プロジェクト: bnowak/card-game
 /**
  * Count cards which all players placed in pile
  *
  * @return int
  */
 public function countCardsSituatedInPile() : int
 {
     return $this->cardsPile->count();
 }