Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 6496e204f77658ff2108478d2951b08a > files > 44

php-pear-Games_Chess-1.0.1-5mdv2010.0.noarch.rpm

--TEST--
Games_Chess->_convertSquareToSAN() a1 is not your piece
--SKIPIF--
--FILE--
<?php
require_once dirname(__FILE__) . '/setup.php.inc';
$board->addPiece('B', 'R', 'a1');
$board->_convertSquareToSAN('a1', 'a3', 'R');
$phpunit->assertErrors(array(
    array('package' => 'PEAR_Error', 'message' => 'The piece on a1 is not your piece')
), 'wrong error message');
echo 'tests done';
?>
--EXPECT--
tests done