예제 #1
0
 /**
  * @covers ::getSourceValue
  */
 public function testGetSourceValue()
 {
     $item = new ProductItem();
     $item->setProduct(new Product(['currency' => 'EUR', 'value' => 2000]));
     $this->assertEquals(new Money(2000, new Currency('EUR')), $item->getSourceValue());
 }