| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | public function test($inputString, $expected) { |
||
| 17 | $engine = new Spk; |
||
| 18 | $property = new \ReflectionProperty($engine, 'currentTransactionData'); |
||
| 19 | $property->setAccessible(true); |
||
| 20 | $property->setValue($engine, $inputString); |
||
| 21 | |||
| 22 | $method = new \ReflectionMethod($engine, 'parseTransactionPrice'); |
||
| 23 | $method->setAccessible(true); |
||
| 24 | $this->assertSame($expected, $method->invoke($engine)); |
||
| 25 | } |
||
| 34 | } |