Table of Contents
- $cliExtensionOptions : string
- $cliOptions : string
- $extensionsToLoad : array<string|int, string>
- $pdfTools : PdfTools
- $phpExecutor : PhpExecutor
- $tempDir : string
- $testsDir : string
- $verbose : bool
- __construct() : mixed
- assertIsFileType() : bool
- assertIsPhpValidFile() : bool
- execute() : bool
- extensionsToLoad() : array<string|int, string>
- getPhpCliOptions() : string
- getPhpExtensionCliOptions() : string
- isPdfFile() : bool
Properties
$cliExtensionOptions
private string $cliExtensionOptions =
null
$cliOptions
private string $cliOptions = null
$extensionsToLoad
private array<string|int,
string> $extensionsToLoad
$pdfTools
private
PdfTools
$pdfTools
$phpExecutor
private
PhpExecutor
$phpExecutor
$tempDir
private string $tempDir
$testsDir
private string $testsDir
$verbose
private bool $verbose
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
Return values
mixed —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
bool —assertIsPhpValidFile()
public assertIsPhpValidFile(string $file)
: bool
Parameters
- $file : string
Return values
bool —execute()
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
extensionsToLoad()
private extensionsToLoad()
: array<string|int,
string>
Return values
array<string|int, string> —getPhpCliOptions()
private getPhpCliOptions()
: string
Return values
string —getPhpExtensionCliOptions()
private getPhpExtensionCliOptions()
: string
Return values
string —isPdfFile()
private isPdfFile(string $outputFile)
: bool
Parameters
- $outputFile : string
-
Path to output file