diff --git a/tests/Exception/ExceptionTest.php b/tests/Exception/ExceptionTest.php index 3207406f..38804ab2 100644 --- a/tests/Exception/ExceptionTest.php +++ b/tests/Exception/ExceptionTest.php @@ -37,7 +37,7 @@ public function testConstructorWithoutParameters() : void $this->assertSame('', $exception->getMessage()); $this->assertSame([], $exception->getContext()); $this->assertSame(0, $exception->getCode()); - $this->assertSame(null, $exception->getPrevious()); + $this->assertNull($exception->getPrevious()); } /** @@ -69,8 +69,8 @@ public function testContext() : void $this->assertSame($context['foo'], $exception->fromContext('foo')); $this->assertSame($context['bar'], $exception->fromContext('bar')); - $this->assertSame(null, $exception->fromContext('baz')); - $this->assertSame(false, $exception->fromContext('baz', false)); + $this->assertNull($exception->fromContext('baz')); + $this->assertFalse($exception->fromContext('baz', false)); } /**