Skip to content

Commit 147e85b

Browse files
Remove ezSystemInfo dependency
1 parent 3118266 commit 147e85b

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

classes/exception/DeadlineException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
class DeadlineException extends \Exception
66
{
77

8-
}
8+
}

composer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@
4242
"php-mock/php-mock-phpunit": "^1",
4343
"phpunit/phpunit": "^5",
4444
"predis/predis": "~1.0",
45-
"squizlabs/php_codesniffer": "^3.2",
46-
"zetacomponents/system-information": "~1.1"
45+
"squizlabs/php_codesniffer": "^3.2"
4746
},
4847
"archive": {
4948
"exclude": ["/tests"]

tests/mutex/FlockMutexTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ public function testNoTimeoutWaitsForever()
9393
$this->mutex->strategy = FlockMutex::STRATEGY_BLOCK;
9494

9595
$timebox = new PcntlTimeout(1);
96-
$timebox->timeBoxed(function() {
97-
$this->mutex->synchronized(function() {
96+
$timebox->timeBoxed(function () {
97+
$this->mutex->synchronized(function () {
9898
$this->fail("Did not expect code execution.");
9999
});
100100
});

tests/mutex/MutexConcurrencyTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace malkusch\lock\mutex;
44

55
use Eloquent\Liberator\Liberator;
6-
use ezcSystemInfo;
76
use Predis\Client;
87
use Redis;
98
use Spork\ProcessManager;
@@ -92,7 +91,7 @@ private function fork($concurrency, callable $code)
9291
*/
9392
public function testHighContention(callable $code, callable $mutexFactory)
9493
{
95-
$concurrency = max(2, ezcSystemInfo::getInstance()->cpuCount);
94+
$concurrency = 2;
9695
$iterations = 20000 / $concurrency;
9796
$timeout = $concurrency * 20;
9897

0 commit comments

Comments
 (0)