1--TEST--
2Games_Chess_Crazyhouse->_getAllPieceLocations() starting position
3--SKIPIF--
4--FILE--
5<?php
6require_once dirname(__FILE__) . '/setup.php.inc';
7$board->resetGame();
8$board->moveSAN('e4');
9$phpunit->assertNoErrors('e4');
10$board->moveSAN('d5');
11$phpunit->assertNoErrors('d5');
12$board->moveSAN('exd5');
13$phpunit->assertNoErrors('exd5');
14$board->moveSAN('Qxd5');
15$phpunit->assertNoErrors('Qxd5');
16$board->moveSAN('P@d4');
17$phpunit->assertNoErrors('P@d4');
18$board->moveSAN('P@e5');
19$phpunit->assertNoErrors('P@e5');
20
21$phpunit->assertEquals(array (
22  0 => 'a2',
23  1 => 'b2',
24  2 => 'c2',
25  3 => 'd2',
26  4 => 'f2',
27  5 => 'g2',
28  6 => 'h2',
29  7 => 'd4',
30  8 => 'c1',
31  9 => 'f1',
32  10 => 'b1',
33  11 => 'g1',
34  12 => 'd1',
35  13 => 'a1',
36  14 => 'h1',
37  15 => 'e1',
38), $board->_getAllPieceLocations('W'), 'white');
39$phpunit->assertEquals(array (
40  0 => 'a7',
41  1 => 'b7',
42  2 => 'c7',
43  3 => 'e7',
44  4 => 'f7',
45  5 => 'g7',
46  6 => 'h7',
47  7 => 'e5',
48  8 => 'c8',
49  9 => 'f8',
50  10 => 'b8',
51  11 => 'g8',
52  12 => 'd5',
53  13 => 'a8',
54  14 => 'h8',
55  15 => 'e8',
56), $board->_getAllPieceLocations('B'), 'black');
57echo 'tests done';
58?>
59--EXPECT--
60tests done