function testDontNeedRehash() { // create hash using default cost $password = new Bcrypt(); $hash = $password->hash('test'); $this->assertEquals(true, $password->verify('test', $hash)); $this->assertEquals(false, $password->needsRehash($hash, $password->getCost())); }