1--TEST-- 2Games_Chess_Crazyhouse->inCheck() other positions 3--SKIPIF-- 4--FILE-- 5<?php 6require_once dirname(__FILE__) . '/setup.php.inc'; 7$board->resetGame('8/pppppppp/8/rnbqkbnr/8/RNBQKBNR/PPPPPPPP/8 w KQkq - 0 1'); 8$pieces = $board->inCheck('W'); 9$phpunit->assertEquals( 10 'c5', 11 $pieces, 'black checking is wrong'); 12$pieces = $board->inCheck('B'); 13$phpunit->assertEquals( 14 'c3', 15 $pieces, 'white checking is wrong'); 16echo 'tests done'; 17?> 18--EXPECT-- 19tests done