Skip to content

Commit

Permalink
cs ok?
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Dec 3, 2024
1 parent 08faf03 commit 1163553
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions tests/mutex/CASMutexTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function testNotify()
++$i;
$mutex->notify();
});
self::assertEquals(1, $i);
self::assertSame(1, $i);
}

/**
Expand All @@ -80,6 +80,6 @@ public function testIteration()
$mutex->notify();
}
});
self::assertEquals(2, $i);
self::assertSame(2, $i);
}
}
4 changes: 2 additions & 2 deletions tests/mutex/LockMutexTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public function testCodeResultAvailableAfterFailedUnlock()
return 'result';
});
} catch (LockReleaseException $exception) {
self::assertEquals('result', $exception->getCodeResult());
self::assertSame('result', $exception->getCodeResult());
self::assertNull($exception->getCodeException());
}
}
Expand All @@ -129,7 +129,7 @@ public function testCodeExceptionAvailableAfterFailedUnlock()
});
} catch (LockReleaseException $exception) {
self::assertInstanceOf(\DomainException::class, $exception->getCodeException());
self::assertEquals('Domain exception', $exception->getCodeException()->getMessage());
self::assertSame('Domain exception', $exception->getCodeException()->getMessage());
}
}
}
2 changes: 1 addition & 1 deletion tests/mutex/MutexConcurrencyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public function testHighContention(callable $code, callable $mutexFactory)
});

$counter = $code(0);
self::assertEquals($concurrency * $iterations, $counter);
self::assertSame($concurrency * $iterations, $counter);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/mutex/TransactionalMutexTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public function testReplayTransaction(\Exception $exception)
$count = $pdo->query('SELECT count(*) FROM testExceptionRollsback')->fetchColumn();
self::assertEquals(1, $count);

self::assertEquals(5, $i);
self::assertSame(5, $i);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/util/DoubleCheckedLockingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,6 @@ public function testCodeExecuted()
});

self::assertTrue($executed);
self::assertEquals('test', $result);
self::assertSame('test', $result);
}
}
2 changes: 1 addition & 1 deletion tests/util/LoopTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public function testEnd()
++$i;
$loop->end();
});
self::assertEquals(1, $i);
self::assertSame(1, $i);
}

/**
Expand Down
4 changes: 2 additions & 2 deletions tests/util/PcntlTimeoutTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function testShouldNotTimeout()
return 42;
});

self::assertEquals(42, $result);
self::assertSame(42, $result);
}

/**
Expand Down Expand Up @@ -69,6 +69,6 @@ public function testShouldResetAlarmWhenNotTimeout()

$timeout->timeBoxed(static function () {});

self::assertEquals(0, pcntl_alarm(0));
self::assertSame(0, pcntl_alarm(0));
}
}

0 comments on commit 1163553

Please sign in to comment.