Completed
Pull Request — master (#16)
by Josef
05:49
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 0
Metric Value
cc 1
eloc 4
nc 1
nop 0
dl 0
loc 7
rs 9.4285
c 1
b 0
f 0
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