1--TEST-- 2Games_Chess->moveSAN() invalid pawn 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 = 'W'; 10$err = $board->addPiece('W', 'P', 'e4'); 11$phpunit->assertFalse(is_object($err), 'adding W pawn failed'); 12$err = $board->moveSAN('exd5'); 13$phpunit->assertErrors(array( 14 array('package' => 'PEAR_Error', 'message' => 'There are no White pieces on the board that can do "exd5"') 15), 'wrong message'); 16$phpunit->assertEquals(6, $board->_halfMoves, 'half moves did not reset'); 17$phpunit->assertEquals('W', $board->_move, 'move color did not increment'); 18$phpunit->assertEquals(1, $board->_moveNumber, 'move number changed'); 19$phpunit->assertEquals('-', $board->_enPassantSquare, 'en passant not set'); 20echo 'tests done'; 21?> 22--EXPECT-- 23tests done