Skip to content

Commit

Permalink
DEBUG less precision to fix MSSQL testing
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed May 6, 2022
1 parent 1d9a056 commit c7b3b9d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/TypecastingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function testType(): void
'boolean' => true,
'integer' => '2940',
'money' => '8.20',
'float' => '8.20234376757473',
'float' => '8.20234',
'json' => '[1,2,3]',
],
],
Expand Down Expand Up @@ -69,7 +69,7 @@ public function testType(): void
$this->assertEquals(new \DateTime('1970-01-01 12:00:50'), $mm->get('time'));
$this->assertSame(2940, $mm->get('integer'));
$this->assertSame([1, 2, 3], $mm->get('json'));
$this->assertSame(8.20234376757473, $mm->get('float'));
$this->assertSame(8.20234, $mm->get('float'));

$m->createEntity()->setMulti(array_diff_key($mm->get(), ['id' => true]))->save();

Expand All @@ -84,7 +84,7 @@ public function testType(): void
'boolean' => 1,
'integer' => 2940,
'money' => 8.2,
'float' => 8.20234376757473,
'float' => 8.20234,
'json' => '[1,2,3]',
],
2 => [
Expand All @@ -96,7 +96,7 @@ public function testType(): void
'boolean' => '1',
'integer' => '2940',
'money' => '8.2',
'float' => '8.20234376757473',
'float' => '8.20234',
'json' => '[1,2,3]',
],
],
Expand Down Expand Up @@ -243,7 +243,7 @@ public function testTypeCustom1(): void
'b2' => false,
'integer' => '2940',
'money' => '8.20',
'float' => '8.20234376757473',
'float' => '8.20234',
],
],
];
Expand Down

0 comments on commit c7b3b9d

Please sign in to comment.