Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
24 | public function testCreateAndSetUnitPriceOfProduct() |
||
25 | { |
||
26 | $product = new \Ipag\Classes\Product(); |
||
27 | |||
28 | $product->setUnitPrice(1.99); |
||
29 | $this->assertEquals(1.99, $product->getUnitPrice()); |
||
30 | |||
31 | $product->setUnitPrice('1.99'); |
||
32 | $this->assertEquals(1.99, $product->getUnitPrice()); |
||
33 | |||
34 | $product->setUnitPrice('1,99'); |
||
35 | $this->assertEquals(1.99, $product->getUnitPrice()); |
||
36 | } |
||
38 |