DecimalFromIntegerTest::testNoInteger()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
declare(strict_types=1);
3
4
use Litipk\BigNumbers\Decimal as Decimal;
5
use PHPUnit\Framework\TestCase;
6
7
\date_default_timezone_set('UTC');
8
9
class DecimalFromIntegerTest extends TestCase
10
{
11
    /**
12
     * @expectedException \TypeError
13
     */
14
    public function testNoInteger()
15
    {
16
        Decimal::fromInteger(5.1);
17
    }
18
}
19