| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 35 | 4 | public function apply(NodeValueInterface $input, PointerProcessorInterface $pointerProcessor): NodeValueInterface |
|
| 36 | { |
||
| 37 | 4 | $selectResult = $pointerProcessor->select($this->pathPointer, $input); |
|
| 38 | 4 | if ($this->matches($selectResult)) { |
|
| 39 | 2 | return $input; |
|
| 40 | } |
||
| 41 | |||
| 42 | 2 | throw new Exception\TestFailedException($this->index, $input, $this->pathPointer->getSource(), $this->value); |
|
| 43 | } |
||
| 54 |