1--TEST-- 2Games_Chess->_getDiagonals() a1 3--SKIPIF-- 4--FILE-- 5<?php 6require_once dirname(__FILE__) . '/setup.php.inc'; 7$ret = $board->_getDiagonals('a1'); 8$phpunit->assertEquals(false, $ret['NW'], 'Northwest should not exist'); 9$phpunit->assertEquals(false, $ret['SE'], 'Southeast should not exist'); 10$phpunit->assertEquals(false, $ret['SW'], 'Southwest should not exist'); 11$phpunit->assertEquals(array('b2', 'c3', 'd4', 'e5', 'f6', 'g7', 'h8'), 12 $ret['NE'], 'Northeast should contain all the diagonals'); 13$ret = $board->_getDiagonals('a1', true); 14$phpunit->assertEquals(array('b2', 'c3', 'd4', 'e5', 'f6', 'g7', 'h8'), 15 $ret, 'simple array'); 16echo 'tests done'; 17?> 18--EXPECT-- 19tests done