Пример #1
0
 /**
  * test User Business Logic
  * @return [type] [description]
  */
 public function testUserBiz()
 {
     $userBo = new UserBO();
     $userBo->setId(1);
     $userBo->setUsername('hongker');
     $userBo->setPassword('my pass');
     $userBiz = new UserBiz();
     $newPass = '******';
     $this->assertTrue($userBiz->changePass($userBo, $newPass));
     $this->assertEquals($newPass, $userBo->getPassword());
 }