1 | <?php |
||
2 | |||
3 | declare(strict_types=1); |
||
4 | |||
5 | namespace UsageFinder\Tests; |
||
6 | |||
7 | use PHPUnit\Framework\TestCase as PHPUnitTestCase; |
||
8 | use Symfony\Component\Process\Process; |
||
9 | use function file_exists; |
||
10 | use function is_dir; |
||
11 | |||
12 | class TestCase extends PHPUnitTestCase |
||
13 | { |
||
14 | /** @var string */ |
||
15 | protected $rootDir; |
||
16 | |||
17 | protected function setUp() : void |
||
18 | { |
||
19 | $this->rootDir = __DIR__ . '/..'; |
||
20 | $composerPath = $this->rootDir . '/composer.phar'; |
||
21 | |||
22 | if (! file_exists($composerPath)) { |
||
23 | self::markTestSkipped('Download composer with the ./download-composer.sh shell script.'); |
||
0 ignored issues
–
show
|
|||
24 | } |
||
25 | |||
26 | if (is_dir(__DIR__ . '/example/vendor')) { |
||
27 | return; |
||
28 | } |
||
29 | |||
30 | $process = new Process(['php', $composerPath, 'install'], __DIR__ . '/example'); |
||
31 | $process->run(); |
||
32 | } |
||
33 | } |
||
34 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.