コード例 #1
0
ファイル: PlayerTest.php プロジェクト: delboy1978uk/casino
 /**
  * Check tests are working
  */
 public function testAddAndRemoveChips()
 {
     $this->player->addChips(500);
     $this->assertEquals(500, $this->player->getBalance());
     $this->player->removeChips(100);
     $this->assertEquals(400, $this->player->getBalance());
     $this->player->addChips(1000);
     $this->assertEquals(1400, $this->player->getBalance());
 }