Skip to content

Commit 8364b43

Browse files
committed
tests update
1 parent 7d52148 commit 8364b43

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

Tests/ChessGameTest.php

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,12 +1096,14 @@ public function testGameShouldEndInFiveFoldRepetition()
10961096
$this->assertFiveFoldRepetitionDraw();
10971097
}
10981098

1099-
/**
1100-
* PHP8
1101-
*
1102-
* E_WARNING: Undefined array key 2
1103-
*/
1104-
public function testInBasicDrawWith3Pieces()
1099+
public function testNotInBasicDrawTwoWhiteVsTwoBlack()
1100+
{
1101+
$fen = '8/8/8/8/4k3/8/3Kn3/6Q1 w - -';
1102+
$this->game->resetGame($fen);
1103+
$this->assertFalse($this->game->inBasicDraw());
1104+
}
1105+
1106+
public function testInBasicDrawThreePiecesRemained()
11051107
{
11061108
$fen = '8/8/8/8/4k3/8/3K4/6n1 w - -';
11071109
$this->game->resetGame($fen);

0 commit comments

Comments
 (0)