VuFind API Documentation

InstallControllerTest extends TestCase
in package

Class InstallControllerTest

Tags
category

VuFind

author

Josef Moravec moravec@mzk.cz

license

https://opensource.org/licenses/gpl-2.0.php GNU General Public License

link

Wiki

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
dataProvider

getMinimalPhpVersionProvider

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

Search results