Completed
Push — master ( b59c0c...c68fa7 )
by Josef
08:24
created

PriceTest::testGetters()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 4
nc 1
nop 0
dl 0
loc 7
rs 9.4285
c 1
b 0
f 1
1
<?php declare(strict_types = 1);
2
3
namespace SlevomatCsobGateway;
4
5
class PriceTest extends \PHPUnit_Framework_TestCase
6
{
7
8
	public function testGetters()
9
	{
10
		$cartItem = new Price(123, new Currency(Currency::USD));
11
12
		$this->assertSame(123, $cartItem->getAmount());
13
		$this->assertSame(Currency::USD, $cartItem->getCurrency()->getValue());
14
	}
15
16
}
17