| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | protected function setUp() |
||
| 18 | { |
||
| 19 | parent::setUp(); |
||
| 20 | $this->httpClient = Mockery::mock('Github\HttpClient\HttpClientInterface'); |
||
| 21 | $this->response = Mockery::mock('Guzzle\Http\Message\Response'); |
||
| 22 | $this->config = Mockery::mock('Bowerphp\Config\ConfigInterface'); |
||
| 23 | |||
| 24 | $this->config |
||
|
|
|||
| 25 | ->shouldReceive('getOverridesSection')->andReturn([]) |
||
| 26 | ->shouldReceive('getOverrideFor')->andReturn([]) |
||
| 27 | ->shouldReceive('getBasePackagesUrl')->andReturn('http://bower.herokuapp.com/packages/') |
||
| 28 | ; |
||
| 29 | } |
||
| 30 | |||
| 41 |
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: