public function testSetPasswordHash() { $u = new ae_UserModel(); $hash = ae_Security::hash('test pwd'); $u->setPasswordHash($hash); $this->assertTrue($u->getPasswordHash() === $hash); $u->setPasswordHash(123456); $this->assertTrue($u->getPasswordHash() === '123456'); $this->setExpectedException('Exception'); $u->setPasswordHash(''); }