From 35d063fbd0eff615ed91defa1c2cc3023c85166a Mon Sep 17 00:00:00 2001 From: Anatoliy Melnikov <5785276@gmail.com> Date: Thu, 30 May 2024 01:58:42 +0300 Subject: [PATCH] Update fixture --- tests/Unit/Service/BuilderTest.php | 2 +- tests/Unit/Service/FileCacheCalculatorTest.php | 2 +- tests/Unit/Service/FileComparatorTest.php | 2 +- tests/Unit/Service/ReaderTest.php | 2 +- tests/fixtures/.php-cs-fixer-baseline.json | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/Unit/Service/BuilderTest.php b/tests/Unit/Service/BuilderTest.php index 8c77aa7..ffaf0d4 100644 --- a/tests/Unit/Service/BuilderTest.php +++ b/tests/Unit/Service/BuilderTest.php @@ -44,6 +44,6 @@ public function testCreate(): void self::assertInstanceOf(FileHash::class, $fileHash); self::assertSame($expectedPath, $fileHash->getPath()); - self::assertSame(3067467297, $fileHash->getHash()); + self::assertSame(4266623405, $fileHash->getHash()); } } diff --git a/tests/Unit/Service/FileCacheCalculatorTest.php b/tests/Unit/Service/FileCacheCalculatorTest.php index d0b480c..f0cc416 100644 --- a/tests/Unit/Service/FileCacheCalculatorTest.php +++ b/tests/Unit/Service/FileCacheCalculatorTest.php @@ -19,6 +19,6 @@ public function testCalculate(): void ->willReturn(__DIR__ . '/../../fixtures/file-for-calculation-of-hash.php'); $calculator = new FileCacheCalculator(); - self::assertSame(3067467297, $calculator->calculate($file)); + self::assertSame(4266623405, $calculator->calculate($file)); } } diff --git a/tests/Unit/Service/FileComparatorTest.php b/tests/Unit/Service/FileComparatorTest.php index 4187119..7513642 100644 --- a/tests/Unit/Service/FileComparatorTest.php +++ b/tests/Unit/Service/FileComparatorTest.php @@ -17,7 +17,7 @@ public function testInBaseLine(): void { $file = $this->mockSplFileInfo(); $baselineContent = new BaselineContent(); - $baselineContent->addHash(new FileHash($file->getPathname(), 3067467297)); + $baselineContent->addHash(new FileHash($file->getPathname(), 4266623405)); $comparator = new FileComparator(); diff --git a/tests/Unit/Service/ReaderTest.php b/tests/Unit/Service/ReaderTest.php index db966dd..bf69b91 100644 --- a/tests/Unit/Service/ReaderTest.php +++ b/tests/Unit/Service/ReaderTest.php @@ -40,6 +40,6 @@ public function testExistingPath(): void self::assertInstanceOf(FileHash::class, $fileHash); self::assertSame($expectedPath, $fileHash->getPath()); - self::assertSame(3067467297, $fileHash->getHash()); + self::assertSame(4266623405, $fileHash->getHash()); } } diff --git a/tests/fixtures/.php-cs-fixer-baseline.json b/tests/fixtures/.php-cs-fixer-baseline.json index e1c1fd5..d10b3c4 100644 --- a/tests/fixtures/.php-cs-fixer-baseline.json +++ b/tests/fixtures/.php-cs-fixer-baseline.json @@ -2,7 +2,7 @@ "config_hash": 1624530864, "hashes": { "\/app\/tests\/fixtures\/file-for-calculation-of-hash.php": { - "hash": 3067467297 + "hash": 4266623405 } } } \ No newline at end of file