Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bajb committed May 19, 2021
1 parent 2da103f commit 33906e3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/DateTimeHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public function uniqidProvider()

public function testMilliseconds()
{
static::assertInternalType('int', DateTimeHelper::milliseconds());
static::assertIsInt( DateTimeHelper::milliseconds());
}

public function testToSeconds()
Expand Down
8 changes: 4 additions & 4 deletions tests/SystemTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ protected function tearDown(): void

public function testGlobals()
{
static::assertInternalType('bool', System::isHHVM());
static::assertInternalType('bool', System::isMac());
static::assertInternalType('bool', System::isWindows());
static::assertIsBool(System::isHHVM());
static::assertIsBool(System::isMac());
static::assertIsBool(System::isWindows());
}

public function testIsAppEngine()
Expand Down Expand Up @@ -61,7 +61,7 @@ public function testIsBuiltInWebServer()

public function testCommandFinder()
{
static::assertInternalType('bool', System::commandExists('whois'));
static::assertIsBool(System::commandExists('whois'));
if(System::isWindows())
{
static::assertTrue(System::commandExists('explorer'));
Expand Down

0 comments on commit 33906e3

Please sign in to comment.