1--TEST--
2Games_Chess->moveSAN() invalid piece move
3--SKIPIF--
4--FILE--
5<?php
6require_once dirname(__FILE__) . '/setup.php.inc';
7$board->_halfMoves = 6;
8$board->_moveNumber = 1;
9$board->_move = 'B';
10$board->_enPassantSquare = 'e3';
11$err = $board->addPiece('B', 'N', 'e4');
12$phpunit->assertFalse(is_object($err), 'adding W knight failed');
13$err = $board->moveSAN('Nxf6');
14$phpunit->assertErrors(array(
15    array('package' => 'PEAR_Error', 'message' => 'There is no piece on square f6',
16)), 'wrong message');
17$phpunit->assertEquals(6, $board->_halfMoves, 'half moves did not increment');
18$phpunit->assertEquals('B', $board->_move, 'move color did not increment');
19$phpunit->assertEquals(1, $board->_moveNumber, 'move number changed');
20$phpunit->assertEquals('e3', $board->_enPassantSquare, 'en passant not reset');
21echo 'tests done';
22?>
23--EXPECT--
24tests done