PriceTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 4
c 1
b 0
f 1
dl 0
loc 9
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A testGetters() 0 6 1
1
<?php declare(strict_types = 1);
2
3
namespace SlevomatCsobGateway;
4
5
use PHPUnit\Framework\TestCase;
6
7
class PriceTest extends TestCase
8
{
9
10
	public function testGetters(): void
11
	{
12
		$cartItem = new Price(123, Currency::get(Currency::USD));
13
14
		self::assertSame(123, $cartItem->getAmount());
15
		self::assertSame(Currency::USD, $cartItem->getCurrency()->getValue());
16
	}
17
18
}
19