RequiredPhpExtensionsTest
extends TestCase
in package
Controleer of alle benodige php extenties geinstalleerd zijn.
Tags
Table of Contents
- $definitionToExtension : array<string|int, mixed>
- Assoc array waarvan de key de functie/class is en de value de extentie.
- $extensionUsedIn : array<string|int, mixed>
- Assoc array met als key de extentie gevult met alle bestanden die deze extentie gebruiken.
- $missingExtensions : array<string|int, mixed>
- $onlyClassesFolder : bool
- Switch off to scan all files in the \Sledgehammer\PATH.
- __construct() : mixed
- tests/data/required_php_extentions.db.php inlezen en omzetten naar de $function_to_extention_map.
- test_missing_extentions() : mixed
- Controleer of de php extenties geinstalleerd zijn.
- checkFile() : mixed
- Analyze the PHP file and check all used classes and functions again the known extension mapping.
- checkFolder() : mixed
- Scan a folder and subfolders for *.php files.
Properties
$definitionToExtension
Assoc array waarvan de key de functie/class is en de value de extentie.
private
array<string|int, mixed>
$definitionToExtension
= []
$extensionUsedIn
Assoc array met als key de extentie gevult met alle bestanden die deze extentie gebruiken.
private
array<string|int, mixed>
$extensionUsedIn
= []
$missingExtensions
private
array<string|int, mixed>
$missingExtensions
= []
$onlyClassesFolder
Switch off to scan all files in the \Sledgehammer\PATH.
private
bool
$onlyClassesFolder
= true
Methods
__construct()
tests/data/required_php_extentions.db.php inlezen en omzetten naar de $function_to_extention_map.
public
__construct() : mixed
Return values
mixed —test_missing_extentions()
Controleer of de php extenties geinstalleerd zijn.
public
test_missing_extentions() : mixed
Return values
mixed —checkFile()
Analyze the PHP file and check all used classes and functions again the known extension mapping.
private
checkFile(string $filename) : mixed
Parameters
- $filename : string
Return values
mixed —checkFolder()
Scan a folder and subfolders for *.php files.
private
checkFolder(string $folder) : mixed
Parameters
- $folder : string