public function testInStalemate() { $chess = new ChessPublicator(); $this->assertSame($chess->inStalemate(), false); // fen source: https://www.redhotpawn.com/forum/only-chess/interesting-stalemate-position.152109 // start fen : 3b3k/p6p/1p5P/3q4/8/n7/PP6/K4Q2 w - - 0 1 $chess->load('7k/p6p/1p3b1P/3q4/8/n7/PP6/K7 w - - 0 2'); $this->assertSame($chess->inStalemate(), true); }