InstallControllerTest
extends TestCase
in package
Class InstallControllerTest
Tags
Table of Contents
- getMinimalPhpVersionProvider() : array<string|int, array<string|int, mixed>>
- Test data for getMinimalPhpVersion
- testGetMinimalPhpVersion() : void
- Test getMinimalPhpVersion with actual composer.json file
- testGetMinimalPhpVersionWithActualData() : void
- Test getMinimalPhpVersion with actual composer.json file
- testGetMinimalPhpVersionWithMissingFile() : void
- Simulate missing composer.json file
- testGetMinimalPhpVersionWithMissingPhpVersion() : void
- Simulate no PHP version defined in composer.json file
- getMinimalPhpVersionMethod() : ReflectionMethod
- Return method InstallController::getMinimalPhpVersion
- mockControllerWithComposerJson() : InstallController
- Mock controller
Methods
getMinimalPhpVersionProvider()
Test data for getMinimalPhpVersion
public
static getMinimalPhpVersionProvider() : array<string|int, array<string|int, mixed>>
Return values
array<string|int, array<string|int, mixed>> —testGetMinimalPhpVersion()
Test getMinimalPhpVersion with actual composer.json file
public
testGetMinimalPhpVersion(array<string|int, mixed> $json, string $expected) : void
Parameters
- $json : array<string|int, mixed>
-
JSON data
- $expected : string
-
Expected version number
Tags
Return values
void —testGetMinimalPhpVersionWithActualData()
Test getMinimalPhpVersion with actual composer.json file
public
testGetMinimalPhpVersionWithActualData() : void
Return values
void —testGetMinimalPhpVersionWithMissingFile()
Simulate missing composer.json file
public
testGetMinimalPhpVersionWithMissingFile() : void
Return values
void —testGetMinimalPhpVersionWithMissingPhpVersion()
Simulate no PHP version defined in composer.json file
public
testGetMinimalPhpVersionWithMissingPhpVersion() : void
Return values
void —getMinimalPhpVersionMethod()
Return method InstallController::getMinimalPhpVersion
protected
getMinimalPhpVersionMethod() : ReflectionMethod
Return values
ReflectionMethod —mockControllerWithComposerJson()
Mock controller
protected
mockControllerWithComposerJson(array<string|int, mixed> $json) : InstallController
Parameters
- $json : array<string|int, mixed>
-
JSON data