Sophie

Sophie

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

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

--TEST--
Games_Chess->getPossibleMoves() invalid piece
--SKIPIF--
--FILE--
<?php
require_once dirname(__FILE__) . '/setup.php.inc';
$err = $board->getPossibleMoves('T', 'a1', 'B');
$phpunit->assertErrors(array(
    array('package' => 'PEAR_Error', 'message' => '"T" is not a valid piece, must be P, Q, R, N, K or B')
), 1);
echo 'tests done';
?>
--EXPECT--
tests done