<?php

namespace Tests\Unit\Services\Security;

use App\Services\Security\Pbkdf2Hasher;
use Tests\TestCase;

class Pbkdf2HasherTest extends TestCase
{
    public function test_hash_and_verify(): void
    {
        $hasher = new Pbkdf2Hasher();
        $hash = $hasher->hash('secret');

        $this->assertTrue($hasher->verify('secret', $hash));
        $this->assertFalse($hasher->verify('wrong', $hash));
    }
}
