C:\xampp\htdocs\PHP - Alura\H - Composer>vendor\bin\phan --allow-polyfill-parser
analyze ████████████████████████████████████████████████████████████ 100.0% 54MB/55MB
src\tests\testBuscadorDeCursos.php:12 PhanUndeclaredExtendedClass Class extends undeclared class \PHPUnit\Framework\TestCase
src\tests\testBuscadorDeCursos.php:30 PhanUndeclaredMethod Call to undeclared method \Alura\BuscadorDeCursos\Tests\TestBuscadorDeCursos::createMock
src\tests\testBuscadorDeCursos.php:32 PhanUndeclaredMethod Call to undeclared method \Alura\BuscadorDeCursos\Tests\TestBuscadorDeCursos::once
src\tests\testBuscadorDeCursos.php:36 PhanUndeclaredMethod Call to undeclared method \Alura\BuscadorDeCursos\Tests\TestBuscadorDeCursos::createMock
src\tests\testBuscadorDeCursos.php:38 PhanUndeclaredMethod Call to undeclared method \Alura\BuscadorDeCursos\Tests\TestBuscadorDeCursos::once
src\tests\testBuscadorDeCursos.php:42 PhanUndeclaredMethod Call to undeclared method \Alura\BuscadorDeCursos\Tests\TestBuscadorDeCursos::createMock
src\tests\testBuscadorDeCursos.php:45 PhanUndeclaredMethod Call to undeclared method \Alura\BuscadorDeCursos\Tests\TestBuscadorDeCursos::once
src\tests\testBuscadorDeCursos.php:59 PhanUndeclaredMethod Call to undeclared method \Alura\BuscadorDeCursos\Tests\TestBuscadorDeCursos::assertCount
src\tests\testBuscadorDeCursos.php:60 PhanUndeclaredMethod Call to undeclared method \Alura\BuscadorDeCursos\Tests\TestBuscadorDeCursos::assertEquals
src\tests\testBuscadorDeCursos.php:61 PhanUndeclaredMethod Call to undeclared method \Alura\BuscadorDeCursos\Tests\TestBuscadorDeCursos::assertEquals
src\tests\testBuscadorDeCursos.php:62 PhanUndeclaredMethod Call to undeclared method \Alura\BuscadorDeCursos\Tests\TestBuscadorDeCursos::assertEquals
Quando executei o phan apareceram esses erros... Diferente do retorno do professor no vídeo, será porque no meu arquivo config tem mais plugin's que no configo do vídeo?
config.php
<?php
return [
"target_php_version" => 8.1,
'directory_list' => [
'src',
'vendor/symfony/dom-crawler',
'vendor/guzzlehttp/guzzle',
'vendor/psr/http-message'
],
"exclude_analysis_directory_list" => [
'vendor/'
],
'plugins' => [
'AlwaysReturnPlugin',
'DollarDollarPlugin',
'DuplicateArrayKeyPlugin',
'DuplicateExpressionPlugin',
'PregRegexCheckerPlugin',
'PrintfCheckerPlugin',
'SleepCheckerPlugin',
'UnreachableCodePlugin',
'UseReturnValuePlugin',
'EmptyStatementListPlugin',
'LoopVariableReusePlugin',
],
];