Skip to content

Commit

Permalink
Replace deprecated method
Browse files Browse the repository at this point in the history
  • Loading branch information
guidocella committed Feb 27, 2019
1 parent 769f0a7 commit 9653924
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/PopulatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public function testRawOne()
{
$user = $this->populator->raw(User::class);

$this->assertInternalType('array', $user);
$this->assertIsArray($user);

$this->assertFalse(User::exists());
}
Expand All @@ -88,7 +88,7 @@ public function testRawMany()
{
$users = $this->populator->raw(User::class, 5);

$this->assertInternalType('array', $users);
$this->assertIsArray($users);

$this->assertContainsOnly('array', $users);

Expand All @@ -111,18 +111,18 @@ public function testColumnTypeGuesser()
{
$user = $this->populator->make(User::class);

$this->assertInternalType('int', $user->smallint);
$this->assertInternalType('int', $user->integer);
$this->assertInternalType('int', $user->bigint);
$this->assertInternalType('float', $user->decimal);
$this->assertInternalType('float', $user->float);
$this->assertIsInt($user->smallint);
$this->assertIsInt($user->integer);
$this->assertIsInt($user->bigint);
$this->assertIsFloat($user->decimal);
$this->assertIsFloat($user->float);
$this->assertTrue(is_string($user->string) && strlen($user->string));
$this->assertTrue(is_string($user->text) && strlen($user->text));
$this->assertInstanceOf(\DateTime::class, $user->date);
$this->assertInstanceOf(\DateTime::class, $user->datetime);
$this->assertInstanceOf(\DateTime::class, $user->timestamp);
$this->assertRegExp('/\d\d:\d\d:\d\d/', $user->time);
$this->assertInternalType('bool', $user->boolean);
$this->assertIsBool($user->boolean);

// DATETIME-TZ, JSON and UUID are not supported by SQLite, so there's no point in testing them.
}
Expand Down

0 comments on commit 9653924

Please sign in to comment.