Skip to content

Commit 2f66884

Browse files
bipedal-robotestahn
authored andcommitted
fix: assertInternalType invalid when $expected is NULL
1 parent ec7dd1e commit 2f66884

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Assert.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public static function assertJsonValueEquals($expected, $expression, $json)
8585
$result = \JmesPath\Env::search($expression, $json);
8686

8787
\PHPUnit\Framework\Assert::assertEquals($expected, $result);
88-
\PHPUnit\Framework\Assert::assertInternalType(gettype($expected), $result);
88+
\PHPUnit\Framework\Assert::assertInternalType(strtolower(gettype($expected)), $result);
8989
}
9090

9191
/**

0 commit comments

Comments
 (0)