CodeAnalysisTest
extends TestCase
in package
Scan PHP code for undefined classes.
Tags
Table of Contents
- donttest_entire_codebase() : mixed
- donttest_single_file() : mixed
- test_definitions() : mixed
- test_known_classes() : mixed
- Analize all known classes and validate if all classes are available.
- test_spider_codebase() : mixed
- Crawl the codebase and validate if all used classes are available.
- analyzeDirectory() : mixed
- tryGetInfo() : bool
Methods
donttest_entire_codebase()
public
donttest_entire_codebase() : mixed
Return values
mixed —donttest_single_file()
public
donttest_single_file() : mixed
Return values
mixed —test_definitions()
public
test_definitions() : mixed
Return values
mixed —test_known_classes()
Analize all known classes and validate if all classes are available.
public
test_known_classes() : mixed
Return values
mixed —test_spider_codebase()
Crawl the codebase and validate if all used classes are available.
public
test_spider_codebase() : mixed
Return values
mixed —analyzeDirectory()
private
analyzeDirectory(mixed $analyzer, mixed $path) : mixed
Parameters
- $analyzer : mixed
- $path : mixed
Return values
mixed —tryGetInfo()
private
tryGetInfo(PhpAnalyzer $analyzer, string $definition) : bool
Parameters
- $analyzer : PhpAnalyzer
- $definition : string
Return values
bool —Success