Skip to content

Commit 6512abe

Browse files
authored
Update composer suggests (#31)
* #30 Updated String Method Test to try to recreate the issue from the initial bug, added composer.json suggestions * #30 Fixed issue from StyleCI * Apply fixes from StyleCI (#32)
1 parent d720000 commit 6512abe

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

composer.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
"phpunit/php-code-coverage": "^6.1@dev",
1616
"php-coveralls/php-coveralls": "2.1.x-dev"
1717
},
18+
"suggest": {
19+
"symfony/intl": "If you just need the en locale",
20+
"ext-intl": "For locales other than en"
21+
},
1822
"license": "MIT",
1923
"authors": [
2024
{

test/Mhorninger/MySQLite/StringMethodTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,14 @@ public function testFormatNull()
4949
$this->assertNull($result->value);
5050
}
5151

52+
public function testFormatWithMathProblem()
53+
{
54+
$query = 'SELECT FORMAT((3600 * 1.7 / 281), 1) as value';
55+
$result = $this->conn->selectOne($query);
56+
$expected = '21.8';
57+
$this->assertEquals($expected, $result->value);
58+
}
59+
5260
//endregion
5361

5462
//region LPAD tests

0 commit comments

Comments
 (0)