mirror of
https://github.com/danog/parallel.git
synced 2024-11-30 04:39:01 +01:00
Use dedicated PHPUnit assertions
This commit is contained in:
parent
7326946884
commit
02a3b84f8f
@ -31,18 +31,18 @@ class BasicEnvironmentTest extends TestCase {
|
||||
$environment = new BasicEnvironment;
|
||||
$key = "key";
|
||||
|
||||
$this->assertFalse(isset($environment[$key]));
|
||||
$this->assertArrayNotHasKey($key, $environment);
|
||||
$this->assertNull($environment[$key]);
|
||||
|
||||
$environment[$key] = 1;
|
||||
$this->assertTrue(isset($environment[$key]));
|
||||
$this->assertArrayHasKey($key, $environment);
|
||||
$this->assertSame(1, $environment[$key]);
|
||||
|
||||
$environment[$key] = 2;
|
||||
$this->assertSame(2, $environment[$key]);
|
||||
|
||||
unset($environment[$key]);
|
||||
$this->assertFalse(isset($environment[$key]));
|
||||
$this->assertArrayNotHasKey($key, $environment);
|
||||
$this->assertNull($environment[$key]);
|
||||
}
|
||||
|
||||
|
@ -17,7 +17,7 @@ class FunctionsTest extends TestCase {
|
||||
|
||||
Worker\pool($pool);
|
||||
|
||||
$this->assertTrue($pool === Worker\pool());
|
||||
$this->assertSame(Worker\pool(), $pool);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -60,7 +60,7 @@ class FunctionsTest extends TestCase {
|
||||
|
||||
Worker\factory($factory);
|
||||
|
||||
$this->assertTrue($factory === Worker\factory());
|
||||
$this->assertSame(Worker\factory(), $factory);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user