| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 38 | public function findMostChangedFiles() |
||
| 39 | { |
||
| 40 | $since = 'last month'; |
||
| 41 | $this->shell->shouldReceive('gitEffort') |
||
|
|
|||
| 42 | ->once() |
||
| 43 | ->with($this->repoPath, $since) |
||
| 44 | ->andReturn(file_get_contents(__DIR__ . '/GitAdapterUnitTest.findMostChangedFiles.in.sh')); |
||
| 45 | |||
| 46 | $expected = include __DIR__ . '/GitAdapterUnitTest.findMostChangedFiles.out.php'; |
||
| 47 | |||
| 48 | self::assertEquals( |
||
| 49 | $expected, |
||
| 50 | $this->adapter->findMostChangedFiles($this->repoPath, $since) |
||
| 51 | ); |
||
| 52 | } |
||
| 53 | } |
||
| 54 |
It seems like the method you are trying to call exists only in some of the possible types.
Let’s take a look at an example:
Available Fixes
Add an additional type-check:
Only allow a single type to be passed if the variable comes from a parameter: