Skip to content

Commit

Permalink
fix: assertInternalType invalid when $expected is NULL
Browse files Browse the repository at this point in the history
  • Loading branch information
bipedal-robot authored and estahn committed Aug 20, 2018
1 parent ec7dd1e commit 2f66884
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Assert.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public static function assertJsonValueEquals($expected, $expression, $json)
$result = \JmesPath\Env::search($expression, $json);

\PHPUnit\Framework\Assert::assertEquals($expected, $result);
\PHPUnit\Framework\Assert::assertInternalType(gettype($expected), $result);
\PHPUnit\Framework\Assert::assertInternalType(strtolower(gettype($expected)), $result);
}

/**
Expand Down

0 comments on commit 2f66884

Please sign in to comment.