1
0
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:
Gabriel Caruso 2018-03-21 17:03:24 -03:00 committed by Niklas Keller
parent 7326946884
commit 02a3b84f8f
2 changed files with 5 additions and 5 deletions

View File

@ -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]);
}

View File

@ -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);
}
/**