PriceTest::testGetters()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 3
c 1
b 0
f 1
nc 1
nop 0
dl 0
loc 6
rs 10
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