//print_r($newdeck);
//echo '<br /><br />';
print "<h3>Testing the Character Class with a few cards.</h3>";
$ourup = 42;
$charname = 'A name';
require_once 'character.php';
$newchar = new Character($uidtotest, $charname, $ourup);
echo 'Initial character object: ';
$newchar->printCharInfo();
echo '<br /><br />Adding card: ';
$newcard->printCardInfo();
$newchar->addCard($newcard);
$newchar->saveCharacter();
//$newchar->printCharInfo();
echo '<br /><br />Adding a second card: ';
$testcard->printCardInfo();
$newchar->addCard($testcard);
$newchar->saveCharacter();
echo '<br /><br />Resulting character: ';
$newchar->printCharInfo();
echo '<br /><br />Removed a card: ';
$newchar->removeCard($newcard);
$newchar->saveCharacter();
$newchar->printCharInfo();
echo '<br /><br />Get a copy of the character from the DB';
$charcopy = new Character($uidtotest, '', 0);
$charcopy->getCharacter($newchar->getCharID(), $uidtotest);
echo '<br /><br />Comparing the copy to the original: ';
//$newchar->printCharInfo();
$newchar_str = $newchar->strRepresentation();
//$charcopy->printCharInfo();