| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | public function testGettersAndSetters() |
||
| 30 | { |
||
| 31 | $this->searchResult = new SearchResult( |
||
|
|
|||
| 32 | $this->defaultData['class'], |
||
| 33 | $this->defaultData['id'], |
||
| 34 | $this->defaultData['bundle'], |
||
| 35 | $this->defaultData['title'], |
||
| 36 | $this->defaultData['route'] |
||
| 37 | ); |
||
| 38 | $this->searchResult->setWeight($this->defaultData['weight']); |
||
| 39 | |||
| 40 | $this->assertEquals($this->defaultData['class'], $this->searchResult->getClass()); |
||
| 41 | $this->assertEquals($this->defaultData['id'], $this->searchResult->getId()); |
||
| 42 | $this->assertEquals($this->defaultData['bundle'], $this->searchResult->getBundle()); |
||
| 43 | $this->assertEquals($this->defaultData['title'], $this->searchResult->getTitle()); |
||
| 44 | $this->assertEquals($this->defaultData['route'], $this->searchResult->getRoute()); |
||
| 45 | $this->assertEquals($this->defaultData['weight'], $this->searchResult->getWeight()); |
||
| 46 | } |
||
| 47 | } |
||
| 48 |
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..