public function testHistoryPrettyMoves() { $chess = new ChessPublicator(); $moves = ["e4", "e6", "d4", "d5", "Nc3", "Nf6", "Bg5", "dxe4", "Nxe4", "Be7", "Bxf6", "gxf6", "g3", "f5", "Nc3", "Bf6"]; foreach ($moves as $move) { $this->assertNotNull($chess->move($move), $move); } $histories = $chess->history(['verbose' => true]); $this->assertSame(count($histories), count($moves)); foreach ($histories as $k => $history) { $this->assertSame($history['san'], $moves[$k]); } }