Esempio n. 1
0
 /**
  * @dataProvider \Bnowak\CardGame\Tests\TestDataProvider::getCardsDataArray
  */
 public function testToString(string $figure, string $suit = null)
 {
     $color = array_key_exists($suit, SuitInterface::SUIT_COLOR) ? SuitInterface::SUIT_COLOR[$suit] : 'black';
     $card = new Card($figure, $suit);
     $this->assertContains($figure . $suit, $card->__toString());
     $this->assertContains("color: {$color}", $card->__toString());
 }