| 1 | <?php |
||
| 12 | class KeyValueDictionaryTest extends PHPUnitTestCase |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @param string[] $methods |
||
| 16 | * @return MockObject|KeyValueDictionary |
||
| 17 | */ |
||
| 18 | protected function buildMock(array $methods = null) |
||
| 27 | |||
| 28 | |||
| 29 | public function testFixDictionaryIndex() |
||
| 51 | |||
| 52 | |||
| 53 | public function testGetSingleColumn() |
||
| 66 | } |
||
| 67 |
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: