DecimalFromIntegerTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 0
cbo 2
dl 0
loc 10
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A testNoInteger() 0 4 1
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