1 | <?php |
||
7 | class ListCommandTest extends TestCase |
||
8 | { |
||
9 | /** |
||
10 | * @var $command ListCommand |
||
11 | */ |
||
12 | protected $command = null; |
||
13 | |||
14 | public function setUp() |
||
21 | |||
22 | /** |
||
23 | * Test whether the $cacheTypes property is getting filled |
||
24 | */ |
||
25 | public function testTypesIsNotEmpty() |
||
32 | |||
33 | /** |
||
34 | * Test whether only enabled cache types are taken into account when --enabled=1 |
||
35 | */ |
||
36 | public function testEnabledFilter() |
||
52 | } |
||
53 |
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: