--TEST-- Games_Chess_Crazyhouse->moveSAN() piece move 2 --SKIPIF-- --FILE-- _halfMoves = 6; $board->_moveNumber = 1; $board->_move = 'B'; $board->_enPassantSquare = 'e3'; $err = $board->addPiece('B', 'N', 'e4'); $phpunit->assertTrue($err, 'adding W knight failed'); $err = $board->moveSAN('Nf6'); $phpunit->assertTrue($err, 'moving knight failed'); $phpunit->assertEquals(7, $board->_halfMoves, 'half moves did not increment'); $phpunit->assertEquals('W', $board->_move, 'move color did not increment'); $phpunit->assertEquals(2, $board->_moveNumber, 'move number changed'); $phpunit->assertEquals('-', $board->_enPassantSquare, 'en passant not reset'); echo 'tests done'; ?> --EXPECT-- tests done