1--TEST-- 2Games_Chess_Crazyhouse->addPiece() add white knight 3--SKIPIF-- 4--FILE-- 5<?php 6require_once dirname(__FILE__) . '/setup.php.inc'; 7$board->addPiece('W', 'N', 'a1'); 8$phpunit->assertEquals('a1', $board->_pieces['W']['N'][0], 9 'incorrect knight setup'); 10$board->addPiece('W', 'N', 'g1'); 11$phpunit->assertEquals('a1', $board->_pieces['W']['N'][0], 12 'first knight changed, should not change'); 13$phpunit->assertEquals('g1', $board->_pieces['W']['N'][1], 14 'incorrect knight setup'); 15$board->addPiece('W', 'N', 'h1'); 16$phpunit->assertEquals('a1', $board->_pieces['W']['N'][0], 17 'first knight changed, should not change'); 18$phpunit->assertEquals('g1', $board->_pieces['W']['N'][1], 19 'second knight changed, should not change'); 20$phpunit->assertEquals(array('h1','N'), $board->_pieces['W']['P'][0], 21 'incorrect knight setup'); 22echo 'tests done'; 23?> 24--EXPECT-- 25tests done