com web/qa: Move get_active_branches() to write-tes t.php which is the only place it is used: include/functions.php write-test.php
| From: | Sara Golemon | Date: | Fri, 24 Aug 2018 21:07:53 +0000 |
| Subject: | com web/qa: Move get_active_branches() to write-tes t.php which is the only place it is used: include/functions.php write-test.php | ||
| Groups: | php.qa | ||
| Request: | Send a blank email to php-qa+get-68170@lists.php.net to get a copy of this message | ||
Commit: dce0a011bb3adcf2065dee29fc05b6561f5d0805
Author: Sara Golemon <pollita@php.net> Fri, 24 Aug 2018 17:07:53 -0400
Parents: a400ce90455264ab8ee797e7dc9896248391ab41
Branches: master
Link: http://git.php.net/?p=web/qa.git;a=commitdiff;h=dce0a011bb3adcf2065dee29fc05b6561f5d0805
Log:
Move get_active_branches() to write-test.php which is the only place it is used
Changed paths:
M include/functions.php
M write-test.php
Diff:
diff --git a/include/functions.php b/include/functions.php
index cc5076a..2566af2 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -46,14 +46,3 @@ function is_valid_php_version($version, $QA_RELEASES = array()) {
return false;
}
-
-// This is used for linking to GCOV (Format: GCOV version => Human readable version)
-function get_active_branches() {
- return [
- 'PHP_5_6' => '5.6',
- 'PHP_7_1' => '7.1',
- 'PHP_7_2' => '7.2',
- 'PHP_7_3' => '7.3',
- 'PHP_HEAD' => '7.4',
- ];
-}
diff --git a/write-test.php b/write-test.php
index ba0a36e..a8d612f 100644
--- a/write-test.php
+++ b/write-test.php
@@ -5,6 +5,17 @@ $TITLE = "Writing Tests [PHP-QAT: Quality Assurance Team]";
$SITE_UPDATE = date("D M d H:i:s Y T", filectime(__FILE__));
/* $Id$ */
+// This is used below for linking to GCOV (Format: GCOV version => Human readable version)
+function get_active_branches() {
+ return [
+ 'PHP_5_6' => '5.6',
+ 'PHP_7_1' => '7.1',
+ 'PHP_7_2' => '7.2',
+ 'PHP_7_3' => '7.3',
+ 'PHP_HEAD' => '7.4',
+ ];
+}
+
common_header();
?>
<h1>Creating new test files</h1>