Skip to content

Commit 26e5334

Browse files
committed
Add function to return array of available PHP test versions.
1 parent a289147 commit 26e5334

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

wpengine-phpcompat.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,20 @@ public static function init() {
6565
add_action( 'init', array( self::instance(), 'create_job_queue' ) );
6666
}
6767

68+
/**
69+
* Return an array of available PHP versions to test.
70+
*/
71+
function get_phpversions() {
72+
73+
return apply_filters( 'phpcompat_phpversions', array(
74+
'PHP 7.0' => '7.0',
75+
'PHP 5.6' => '5.6',
76+
'PHP 5.5' => '5.5',
77+
'PHP 5.4' => '5.4',
78+
'PHP 5.3' => '5.3',
79+
));
80+
}
81+
6882
/**
6983
* Start the test!
7084
*

0 commit comments

Comments
 (0)