Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
34 | public function testParse() |
||
35 | { |
||
36 | $parser = $this->buildParser(); |
||
37 | |||
38 | foreach ($this->getParseValueMap() as $origin => $expectedParsed) { |
||
39 | foreach ($this->getTypes() as $type) { |
||
40 | $property = static::getMockBuilder(\ReflectionProperty::class)->disableOriginalConstructor()->getMock(); |
||
41 | $parsed = $parser->parseValue($origin, $type, $property, new \stdClass()); |
||
42 | static::assertEquals($expectedParsed, $parsed); |
||
43 | } |
||
44 | } |
||
45 | } |
||
46 | } |