Skip to content

Commit

Permalink
Merge pull request #89 from peter279k/improve_assertions
Browse files Browse the repository at this point in the history
Improve PHPUnit assertions
  • Loading branch information
fenric authored Nov 30, 2021
2 parents f1764a2 + aeb2831 commit bb07efb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/Exception/ExceptionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

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

/**
Expand Down

0 comments on commit bb07efb

Please sign in to comment.