public function testClear() { $cardCollection = new CardCollection(TestDataProvider::getCardsArray()); $this->assertNotSame(0, $cardCollection->count()); $cardCollection->clear(); $this->assertSame(0, $cardCollection->count()); }
/** * Count cards which all players placed in pile * * @return int */ public function countCardsSituatedInPile() : int { return $this->cardsPile->count(); }