classSourceFile
final class SourceFile
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.
One PHP file to analyze, named the way the catalog reports it.
Properties§
public string $pathpublic string $codeMethods§
public function __construct(public string $path, public string $code)Parameters
$path | string | The path the catalog reports, relative to the analysis root |
$code | string | The source text |
Test cases 9§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
Other tests reaching this symbol 8
CatalogCommandTestcallsExpressionEvaluatorTestcallsSourceScannerTest::testScanFindsThePhpFilesUnderADirectorycallsSourceScannerTest::testScanReportsPathsInAStableOrdercallsCallModelTestcallsAnalyzerTest::testParseAnswersWithTheProblemThatStoppedItcallsJsonReporterTestcallsTextReporterTestcalls