Skip to content

Commit

Permalink
Format FingerprintHelperTest
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianVennen committed Sep 6, 2023
1 parent 7ce6fcb commit 7ea8ce7
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions tests/Unit/Client/FingerprintHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,21 @@

class FingerprintHelperTest extends TestCase
{
public function testRawString() {
public function testRawString()
{
$this->assertEquals(1412061192, CursedFingerprintHelper::getFingerprint("foo", 123));
$this->assertEquals(1777016281, CursedFingerprintHelper::getFingerprint("foobarbaz", 234));
}

public function testRawStringWithWhitespace() {
public function testRawStringWithWhitespace()
{
$this->assertEquals(1412061192, CursedFingerprintHelper::getFingerprint("foo\n", 123));
$this->assertEquals(1412061192, CursedFingerprintHelper::getFingerprint("fo o", 123));
$this->assertEquals(1412061192, CursedFingerprintHelper::getFingerprint("fo o\n", 123));
}

public function testFile() {
public function testFile()
{
$this->assertEquals(3069266640, CursedFingerprintHelper::getFingerprintFromFile(__DIR__ . "/Fixtures/test.txt"));
}
}
}

0 comments on commit 7ea8ce7

Please sign in to comment.