TestExecutor
in package
Table of Contents
Methods
- __construct() : mixed
- assertIsFileType() : bool
- assertIsPhpValidFile() : bool
- execute() : bool
Methods
__construct()
public __construct(PhpExecutor $phpExecutor,
array<string|int,
mixed> $extensionsToLoad,
PdfTools $pdfTools,
string $tempDir,
string $testsDir[,
bool $verbose
= false
]) : mixed
Parameters
- $phpExecutor : PhpExecutor
- $extensionsToLoad : array<string|int, mixed>
- $pdfTools : PdfTools
- $tempDir : string
-
Path to tho temporary folder
- $testsDir : string
-
Path to this folder
- $verbose : bool = false
assertIsFileType()
public assertIsFileType(string $outputFile,
string $outputFileError,
string $type,
bool $preservingFiles)
: bool
Parameters
- $outputFile : string
-
Path to output file
- $outputFileError : string
-
Path to error file
- $type : string
-
Expected type of output
- $preservingFiles : bool
Return values
boolassertIsPhpValidFile()
public assertIsPhpValidFile(string $file)
: bool
Parameters
- $file : string
Return values
boolexecute()
public execute(string $file,
string $outputFile,
string $outputFileError)
: bool
Parameters
- $file : string
-
Path of PHP file to execute
- $outputFile : string
-
Path to output file
- $outputFileError : string
-
Path to output file error
Return values
bool —TRUE if successful, FALSE otherwise