示例#1
0
 /**
  * Ensures everythingworks as expected
  */
 public function testConstructOk()
 {
     $appUser = new AppUser($this->_defaultUser);
     $this->assertTrue(is_int($this->_userData['id']));
     $this->assertSame((string) $this->_userData['id'], $appUser->getId());
     $this->assertEquals($this->_userData['firstName'], $appUser->getFirstName());
     $this->assertEquals($this->_userData['lastName'], $appUser->getLastName());
     $this->assertEquals($this->_userData['emailAddress'], $appUser->getEmailAddress());
     $this->assertEquals($this->_userData['username'], $appUser->getUsername());
 }