Ejemplo n.º 1
0
 /**
  * Sets the user's hashed password
  *
  * @param HashedPassword $password
  */
 public function setPassword(HashedPassword $password)
 {
     $this->password = $password->toString();
 }
Ejemplo n.º 2
0
 /**
  * @test
  * @group hashedpassword
  */
 public function should_return_as_string()
 {
     $password = new HashedPassword($this->pwdTest);
     $this->assertEquals($this->pwdTest, $password->toString());
     $this->assertEquals($this->pwdTest, (string) $password);
 }