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