assertTrue(strlen(Hash::make('taylor')) == 60); } /** * Test the Hash::check method. * * @group laravel */ public function testHashCheckFailsWhenNotMatching() { $hash = Hash::make('taylor'); $this->assertFalse(Hash::check('foo', $hash)); } /** * Test the Hash::check method. * * @group laravel */ public function testHashCheckPassesWhenMatches() { $this->assertTrue(Hash::check('taylor', Hash::make('taylor'))); } }