Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
25 | public function testConcat() |
||
26 | { |
||
27 | $this->fixtures->createAndCdToSandbox(); |
||
28 | |||
29 | $result = $this->taskConcat(['a.txt', 'b.txt']) |
||
|
|||
30 | ->to('merged.txt') |
||
31 | ->run(); |
||
32 | $this->assertTrue($result->wasSuccessful()); |
||
33 | $this->assertFileExists('merged.txt'); |
||
34 | $expected = "A\nB\n"; |
||
35 | $actual = file_get_contents('merged.txt'); |
||
36 | $this->assertEquals($expected, $actual); |
||
37 | |||
38 | |||
39 | } |
||
40 | |||
42 |
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: