Skip to content

Commit bb07efb

Browse files
authored
Merge pull request #89 from peter279k/improve_assertions
Improve PHPUnit assertions
2 parents f1764a2 + aeb2831 commit bb07efb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/Exception/ExceptionTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function testConstructorWithoutParameters() : void
3737
$this->assertSame('', $exception->getMessage());
3838
$this->assertSame([], $exception->getContext());
3939
$this->assertSame(0, $exception->getCode());
40-
$this->assertSame(null, $exception->getPrevious());
40+
$this->assertNull($exception->getPrevious());
4141
}
4242

4343
/**
@@ -69,8 +69,8 @@ public function testContext() : void
6969
$this->assertSame($context['foo'], $exception->fromContext('foo'));
7070
$this->assertSame($context['bar'], $exception->fromContext('bar'));
7171

72-
$this->assertSame(null, $exception->fromContext('baz'));
73-
$this->assertSame(false, $exception->fromContext('baz', false));
72+
$this->assertNull($exception->fromContext('baz'));
73+
$this->assertFalse($exception->fromContext('baz', false));
7474
}
7575

7676
/**

0 commit comments

Comments
 (0)