예제 #1
0
 public function testBackwardCompatibility()
 {
     $this->bcrypt->setSalt($this->salt);
     $this->bcrypt->setBackwardCompatibility(true);
     $password = $this->bcrypt->create($this->password);
     $this->assertEquals('$2a$', substr($password, 0, 4));
     $this->assertEquals(substr($password, 4), substr($this->bcryptPassword, 4));
 }