1--TEST--
2Games_Chess->_convertSquareToSAN() invalid move
3--SKIPIF--
4--FILE--
5<?php
6require_once dirname(__FILE__) . '/setup.php.inc';
7$board->addPiece('W', 'R', 'a1');
8$board->_convertSquareToSAN('a1', 'b3', 'R');
9$phpunit->assertErrors(array(
10    array('package' => 'PEAR_Error', 'message' => 'The piece on a1 cannot move to b3')
11), 'wrong error message');
12echo 'tests done';
13?>
14--EXPECT--
15tests done