| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | public function testFetchDefinitionResolvesProperlyAndFetchesXml() |
||
| 34 | { |
||
| 35 | $this->kernel->locateResource('@AppBundle/Resources/emails/path/to/mail.xml.twig')->willReturn('/path/to/mail.xml.twig')->shouldBeCalled(); |
||
| 36 | $this->twig->render('/path/to/mail.xml.twig', ['param1' => 'wuhuuuu'])->willReturn('<email></email>')->shouldBeCalled(); |
||
| 37 | |||
| 38 | $this->assertEquals('<email></email>', $this->fixture->fetchMailDefinition('App:path/to/mail', ['param1' => 'wuhuuuu'])); |
||
| 39 | } |
||
| 40 | |||
| 49 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..