/** * @depends testBoardCreation */ public function testCleanSquares(Board $board) { $squares = array($board->getSquareByPos(1, 1), null, $board->getSquareByPos(3, 8), $board->getSquareByPos(3, 8)); $cleanSquares = array($board->getSquareByPos(1, 1), $board->getSquareByPos(3, 8)); $this->assertSame($cleanSquares, $board->cleanSquares($squares)); }