Class MLA (Media Library Assistant) Test provides basic run-time tests to ensure the plugin can run in the current WordPress envrionment.

package Media Library Assistant
since 0.1

 Methods

Test that your WordPress version is at least that of the $min_version

min_WordPress_version(string $min_version, string $plugin_name) : \none

since 0.1

Parameters

$min_version

string

representing the minimum required version of WordPress, e.g. '3.3.0'

$plugin_name

string

Name of the plugin for messaging purposes

Returns

\noneExit with messaging if version is too old

Test that your PHP version is at least that of the $min_php_version

min_php_version(string $min_version, string $plugin_name) : \none

since 0.1

Parameters

$min_version

string

representing the minimum required version of PHP, e.g. '5.3.2'

$plugin_name

string

Name of the plugin for messaging purposes

Returns

\noneExit with messaging if PHP version is too old