diff --git a/test/Worker/BasicEnvironmentTest.php b/test/Worker/BasicEnvironmentTest.php index 1e8248f..da0fed1 100644 --- a/test/Worker/BasicEnvironmentTest.php +++ b/test/Worker/BasicEnvironmentTest.php @@ -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]); } diff --git a/test/Worker/FunctionsTest.php b/test/Worker/FunctionsTest.php index 2369625..bcd3009 100644 --- a/test/Worker/FunctionsTest.php +++ b/test/Worker/FunctionsTest.php @@ -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); } /**