| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | function let(TaskRepositoryInterface $taskRepository) |
||
| 27 | { |
||
| 28 | $this->task = new Task; |
||
| 29 | $this->task->setId(1); |
||
| 30 | $this->task->setName($this->taskNameExists); |
||
| 31 | |||
| 32 | $this->taskRepository = $taskRepository; |
||
| 33 | $this->taskRepository |
||
|
|
|||
| 34 | ->findByName($this->taskNameExists) |
||
| 35 | ->willReturn($this->task); |
||
| 36 | $this->taskRepository |
||
| 37 | ->findByName($this->taskNameNonExists) |
||
| 38 | ->willThrow(TaskNotFoundException::class); |
||
| 39 | |||
| 40 | $this->beConstructedWith($this->taskRepository); |
||
| 41 | } |
||
| 42 | |||
| 51 |
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.