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

PriceTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 1
Bugs 0 Features 1
Metric Value
dl 0
loc 12
rs 10
c 1
b 0
f 1
wmc 1
lcom 0
cbo 3

1 Method

Rating   Name   Duplication   Size   Complexity  
A testGetters() 0 7 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