BakirovRoman

Assert is int above zero for PHPUnit TestCase.

Oct 21st, 2021 (edited)
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.24 KB | None | 0 0
  1.     public static function assertIsIntAboveZero($actual, $message = ''): void
  2.     {
  3.         static::assertThat($actual, new IsType(IsType::TYPE_INT), $message);
  4.         static::assertThat($actual, static::greaterThan(0), $message);
  5.     }
Add Comment
Please, Sign In to add comment