| Conditions | 1 |
| Paths | 1 |
| Total Lines | 22 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | function it_writes_attributes( |
||
| 23 | FileNode $fileNode, |
||
| 24 | LayoutNode $layoutNode, |
||
| 25 | OpeningNode $openingNode, |
||
| 26 | BankgiroNode $bankgiroNode |
||
| 27 | ) { |
||
| 28 | $bankgiroNode->getValue()->willReturn('111-111'); |
||
| 29 | |||
| 30 | $openingNode->getAttribute('customer_number')->willReturn('12345'); |
||
| 31 | $openingNode->getChild('bankgiro')->willReturn($bankgiroNode); |
||
|
|
|||
| 32 | $openingNode->getAttribute('layout_name')->willReturn('name'); |
||
| 33 | |||
| 34 | $layoutNode->getChild('opening')->willReturn($openingNode); |
||
| 35 | |||
| 36 | $fileNode->getChildren()->willReturn([$layoutNode]); |
||
| 37 | |||
| 38 | $fileNode->setAttribute('customer_number', '12345')->shouldBeCalled(); |
||
| 39 | $fileNode->setAttribute('bankgiro', '111-111')->shouldBeCalled(); |
||
| 40 | $fileNode->setAttribute('layout_ids', ['name'])->shouldBeCalled(); |
||
| 41 | |||
| 42 | $this->visitFileNode($fileNode); |
||
| 43 | } |
||
| 44 | } |
||
| 45 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.