<?php

require_once dirname(__FILE__) . '/../../../../../include/chatengine/chatuser_class.php';

/**
 * Test class for ChatUser.
 * Generated by PHPUnit on 2011-01-10 at 16:23:39.
 */
class ChatUserTest extends PHPUnit_Framework_TestCase {

  /**
   * @var ChatUser
   */
  protected $object;

  /**
   * Sets up the fixture, for example, opens a network connection.
   * This method is called before a test is executed.
   */
  protected function setUp() {
    $this->object = new ChatUser;
  }

  /**
   * Tears down the fixture, for example, closes a network connection.
   * This method is called after a test is executed.
   */
  protected function tearDown() {

  }

  /**
   * @dataProvider dp_test__set
   */
  public function test__set($name, $value, $success, $expected) {
    $this->object->__set($name, $value);
    if ($success) {
      $this->assertEquals($expected, $this->$name);
    }
    else {
      $this->assertFalse(isset($this->$name));
    }
  }
  public static function dp_test__set() {
    return array(
        array('role', 'wolf', true, array('wolf')),
        array('role', 'wolf, critical', true, array('wolf', 'critical')),
    );
  }

  /**
   * @todo Implement testLoadPlayerInfoFromRequest().
   */
  public function testLoadPlayerInfoFromRequest() {
    // Remove the following lines when you implement this test.
    $this->markTestIncomplete(
            'This test has not been implemented yet.'
    );
  }

  /**
   * @todo Implement testUpdatePlayerInfo().
   */
  public function testUpdatePlayerInfo() {
    // Remove the following lines when you implement this test.
    $this->markTestIncomplete(
            'This test has not been implemented yet.'
    );
  }

  /**
   * @todo Implement testRegisterNewPlayerInfo().
   */
  public function testRegisterNewPlayerInfo() {
    // Remove the following lines when you implement this test.
    $this->markTestIncomplete(
            'This test has not been implemented yet.'
    );
  }

}

?>
