Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
17 | 1 | public function testFromNative(): void |
|
18 | { |
||
19 | 1 | $this->assertEquals('100USD', Money::fromNative('100usd')->toNative()); |
|
20 | 1 | $this->assertEquals('-100A', Money::fromNative('-100A')->toNative()); |
|
21 | |||
22 | 1 | $this->expectException(InvalidArgumentException::class); |
|
23 | 1 | Money::fromNative('100'); |
|
24 | } // @codeCoverageIgnore |
||
40 |