Completed
Push — master ( d6446f...d11253 )
by Nelson
05:36
created

VersionTestProvider::readOnlyPropertiesProvider()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 7
nc 1
nop 0
dl 0
loc 11
rs 9.4285
c 0
b 0
f 0
1
<?php
2
/**
3
 * PHP: Nelson Martell Library file
4
 *
5
 * Content:
6
 * - Trait definition.
7
 *
8
 * Copyright © 2016-2017 Nelson Martell (http://nelson6e65.github.io)
9
 *
10
 * Licensed under The MIT License (MIT)
11
 * For full copyright and license information, please see the LICENSE
12
 * Redistributions of files must retain the above copyright notice.
13
 *
14
 * @copyright 2016-2017 Nelson Martell
15
 * @link      http://nelson6e65.github.io/php_nml/
16
 * @since     v0.6.0
17
 * @license   http://www.opensource.org/licenses/mit-license.php The MIT License (MIT)
18
 * */
19
20
namespace NelsonMartell\Test\DataProviders;
21
22
use NelsonMartell\Version;
23
use NelsonMartell\VersionComponent;
24
use NelsonMartell\Test\Helpers\ExporterPlugin;
25
use NelsonMartell\Test\Helpers\ConstructorMethodTester;
26
use NelsonMartell\Test\Helpers\IComparableTester;
27
use NelsonMartell\Test\Helpers\IComparerTester;
28
use NelsonMartell\Test\Helpers\IEquatableTester;
29
use NelsonMartell\Test\Helpers\ImplementsIStrictPropertiesContainer;
30
use NelsonMartell\Test\Helpers\HasReadOnlyProperties;
31
32
/**
33
 *
34
 * @author Nelson Martell <[email protected]>
35
 * @internal
36
 * */
37
trait VersionTestProvider
38
{
39
    use ExporterPlugin;
40
    use ConstructorMethodTester;
41
    use IComparableTester;
42
    use IComparerTester;
43
    use IEquatableTester;
44
    use ImplementsIStrictPropertiesContainer;
45
    use HasReadOnlyProperties;
46
47
    /**
48
     * Provides invalid arguments for constructor.
49
     *
50
     * @return array
51
     */
52
    public function badConstructorArgumentsProvider()
53
    {
54
        return [
55
            'Type: null (all)'               => [null, null],
56
            'Only first argument'            => [1, null],
57
            'Invalid $major and $minor type' => ['hello', 'world'],
58
            'Invalid $major type (string)'   => ['hello', 1],
59
            'Invalid $minor type (string)'   => [1, 'world'],
60
            '$major value < 0'               => [-1, 0],
61
            '$minor value < 0'               => [1, -3],
62
            '$build value < 0'               => [1, 0, -1, null],
63
            '$revision value < 0'            => [1, 0, 1, -1],
64
            '$revision while $build is not'  => [1, 0, null, -1],
65
        ];
66
    }
67
68
    /**
69
     * Provides valid arguments for constructor.
70
     *
71
     * @return array
72
     */
73
    public function goodConstructorArgumentsProvider()
74
    {
75
        return [
76
            'SemVer: Normal'                     => [1, 0, 0],
77
            'SemVer: Patch release '             => [1, 0, 1],
78
            'SemVer: Minor release'              => [1, 1, 0],
79
            'SemVer: Major release'              => [2, 0, 0],
80
            'SemVer: Pre-release alpha'          => [1, 0, '0-alpha'],
81
            'SemVer: Pre-release beta'           => [1, 0, '0-beta', 1],
82
            // 'SemVer: Pre-release build metadata' => [1, 0, '0-beta', '1+20130313144700'],
0 ignored issues
show
Unused Code Comprehensibility introduced by
67% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
83
            'Windows version: Major'             => [1, 0, 0, 0],
84
            'Windows version: Minor'             => [1, 1, 0, 0],
85
            'Windows version: Build'             => [1, 2, 1, 0],
86
            'Windows version: Revision'          => [1, 3, 1, 2344234],
87
            'Git: describe'                      => [0, 5, '1-34-g6e5462c'],
88
            'Zero (minor)'                       => [0, 0], // is invalid, but can be created
89
            'Zero (build)'                       => [0, 0, 0], // is invalid, but can be created
90
            'Zero (revision)'                    => [0, 0, 0, 0], // is invalid, but can be created
91
        ];
92
    }
93
94
95
    public function objectInstanceProvider()
96
    {
97
        return [[new Version(0, 7, '0-beta')]];
98
    }
99
100
    public function readOnlyPropertiesProvider()
101
    {
102
        $obj = new Version(0, 7, '0-beta');
103
104
        return [
105
            [$obj, 'major', 0],
106
            [$obj, 'minor', 7],
107
            [$obj, 'build', new VersionComponent(0, '-beta')],
108
            [$obj, 'revision', new VersionComponent(null)],
109
        ];
110
    }
111
112
    public function IComparableCompareToMethodArgumentsProvider()
113
    {
114
        $v = new Version(1, 0, 9);
0 ignored issues
show
Comprehensibility introduced by
Avoid variables with short names like $v. Configured minimum length is 3.

Short variable names may make your code harder to understand. Variable names should be self-descriptive. This check looks for variable names who are shorter than a configured minimum.

Loading history...
Coding Style introduced by
Equals sign not aligned with surrounding assignments; expected 13 spaces but found 1 space

This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.

To visualize

$a = "a";
$ab = "ab";
$abc = "abc";

will produce issues in the first and second line, while this second example

$a   = "a";
$ab  = "ab";
$abc = "abc";

will produce no issues.

Loading history...
115
        $obj = new \stdClass();
0 ignored issues
show
Coding Style introduced by
Equals sign not aligned with surrounding assignments; expected 11 spaces but found 1 space

This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.

To visualize

$a = "a";
$ab = "ab";
$abc = "abc";

will produce issues in the first and second line, while this second example

$a   = "a";
$ab  = "ab";
$abc = "abc";

will produce no issues.

Loading history...
116
        $obj->major = 1;
0 ignored issues
show
Coding Style introduced by
Equals sign not aligned with surrounding assignments; expected 4 spaces but found 1 space

This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.

To visualize

$a = "a";
$ab = "ab";
$abc = "abc";

will produce issues in the first and second line, while this second example

$a   = "a";
$ab  = "ab";
$abc = "abc";

will produce no issues.

Loading history...
117
        $obj->minor = 0;
0 ignored issues
show
Coding Style introduced by
Equals sign not aligned with surrounding assignments; expected 4 spaces but found 1 space

This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.

To visualize

$a = "a";
$ab = "ab";
$abc = "abc";

will produce issues in the first and second line, while this second example

$a   = "a";
$ab  = "ab";
$abc = "abc";

will produce no issues.

Loading history...
118
        $obj->build = 9;
0 ignored issues
show
Coding Style introduced by
Equals sign not aligned with surrounding assignments; expected 4 spaces but found 1 space

This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.

To visualize

$a = "a";
$ab = "ab";
$abc = "abc";

will produce issues in the first and second line, while this second example

$a   = "a";
$ab  = "ab";
$abc = "abc";

will produce no issues.

Loading history...
119
        $obj->revision = null;
120
121
122
        $args = [
123
            'Equals by reference'               => [0, $v, $v],
124
            'Equals by value'                   => [0, new Version(1, 0, 1), Version::parse('1.0.1')],
125
            'Major difference'                  => [-1, Version::parse('1.0.0'), Version::parse('2.0.0')],
126
            'Minor difference'                  => [1, Version::parse('1.1.0'), Version::parse('1.0.0')],
127
            'Build difference'                  => [1, Version::parse('1.0.1'), Version::parse('1.0.0')],
128
            'Revision difference'               => [-1, Version::parse('1.0.0.254'), Version::parse('1.0.0.389')],
129
            'Version < object'                  => [null, $v, $obj],
130
            'Version > array parseable'         => [1, Version::parse('1.1.0'), [0, 1, 999]],
131
            'Version < array parseable'         => [-1, Version::parse('1.1.0'), [2, 0]],
132
            'Version > array not parseable'     => [1, Version::parse('0.0.0'), ['invalid array']],
133
            'Version > string parseable'        => [1, Version::parse('1.1.0'), '0.1.999'],
134
            'Version < string parseable'        => [-1, Version::parse('1.1.0'), '2.0'],
135
            'Version > string not parseable'    => [1, Version::parse('1.1.0'), 'invalid string'],
136
            'integer|Version'                   => [1, $v, 9976645645656],
137
        ];
138
139
        return $args;
140
    }
141
142
    public function compareMethodArgumentsProvider()
143
    {
144
        $v = new Version(1, 0, 9);
0 ignored issues
show
Comprehensibility introduced by
Avoid variables with short names like $v. Configured minimum length is 3.

Short variable names may make your code harder to understand. Variable names should be self-descriptive. This check looks for variable names who are shorter than a configured minimum.

Loading history...
Coding Style introduced by
Equals sign not aligned with surrounding assignments; expected 13 spaces but found 1 space

This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.

To visualize

$a = "a";
$ab = "ab";
$abc = "abc";

will produce issues in the first and second line, while this second example

$a   = "a";
$ab  = "ab";
$abc = "abc";

will produce no issues.

Loading history...
145
        $obj = new \stdClass();
0 ignored issues
show
Coding Style introduced by
Equals sign not aligned with surrounding assignments; expected 11 spaces but found 1 space

This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.

To visualize

$a = "a";
$ab = "ab";
$abc = "abc";

will produce issues in the first and second line, while this second example

$a   = "a";
$ab  = "ab";
$abc = "abc";

will produce no issues.

Loading history...
146
        $obj->major = 1;
0 ignored issues
show
Coding Style introduced by
Equals sign not aligned with surrounding assignments; expected 4 spaces but found 1 space

This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.

To visualize

$a = "a";
$ab = "ab";
$abc = "abc";

will produce issues in the first and second line, while this second example

$a   = "a";
$ab  = "ab";
$abc = "abc";

will produce no issues.

Loading history...
147
        $obj->minor = 0;
0 ignored issues
show
Coding Style introduced by
Equals sign not aligned with surrounding assignments; expected 4 spaces but found 1 space

This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.

To visualize

$a = "a";
$ab = "ab";
$abc = "abc";

will produce issues in the first and second line, while this second example

$a   = "a";
$ab  = "ab";
$abc = "abc";

will produce no issues.

Loading history...
148
        $obj->build = 9;
0 ignored issues
show
Coding Style introduced by
Equals sign not aligned with surrounding assignments; expected 4 spaces but found 1 space

This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.

To visualize

$a = "a";
$ab = "ab";
$abc = "abc";

will produce issues in the first and second line, while this second example

$a   = "a";
$ab  = "ab";
$abc = "abc";

will produce no issues.

Loading history...
149
        $obj->revision = null;
150
151
        $args = [
152
            'stdClass|Version' => [null, $obj, $v],
153
            'string|Version'   => [-1, '1.0.0.254', $v],
154
            'integer|Version'  => [-1, 9976645645656, $v],
155
            'float|Version'    => [-1, 1.342333, $v],
156
            'array|Version'    => [-1, [0, 1, 999], Version::parse('1.1.0')],
157
        ];
158
159
        return $args;
160
    }
161
162
    public function compareMethodArraysProvider()
163
    {
164
        return [
165
            'Version[]' => [[
166
                new Version(1, 0, 1, 3),
167
                new Version(1, 0, 11, 3),
168
                new Version(1, 1, 1, 0),
169
                new Version(1, 3, 1, 9),
170
                Version::parse("2.3.2-3-g"),
0 ignored issues
show
Coding Style Comprehensibility introduced by
The string literal 2.3.2-3-g does not require double quotes, as per coding-style, please use single quotes.

PHP provides two ways to mark string literals. Either with single quotes 'literal' or with double quotes "literal". The difference between these is that string literals in double quotes may contain variables with are evaluated at run-time as well as escape sequences.

String literals in single quotes on the other hand are evaluated very literally and the only two characters that needs escaping in the literal are the single quote itself (\') and the backslash (\\). Every other character is displayed as is.

Double quoted string literals may contain other variables or more complex escape sequences.

<?php

$singleQuoted = 'Value';
$doubleQuoted = "\tSingle is $singleQuoted";

print $doubleQuoted;

will print an indented: Single is Value

If your string literal does not contain variables or escape sequences, it should be defined using single quotes to make that fact clear.

For more information on PHP string literals and available escape sequences see the PHP core documentation.

Loading history...
171
                Version::parse("2.3.2-3-g726356"),
0 ignored issues
show
Coding Style Comprehensibility introduced by
The string literal 2.3.2-3-g726356 does not require double quotes, as per coding-style, please use single quotes.

PHP provides two ways to mark string literals. Either with single quotes 'literal' or with double quotes "literal". The difference between these is that string literals in double quotes may contain variables with are evaluated at run-time as well as escape sequences.

String literals in single quotes on the other hand are evaluated very literally and the only two characters that needs escaping in the literal are the single quote itself (\') and the backslash (\\). Every other character is displayed as is.

Double quoted string literals may contain other variables or more complex escape sequences.

<?php

$singleQuoted = 'Value';
$doubleQuoted = "\tSingle is $singleQuoted";

print $doubleQuoted;

will print an indented: Single is Value

If your string literal does not contain variables or escape sequences, it should be defined using single quotes to make that fact clear.

For more information on PHP string literals and available escape sequences see the PHP core documentation.

Loading history...
172
                Version::parse("2.3.2-4-g"),
0 ignored issues
show
Coding Style Comprehensibility introduced by
The string literal 2.3.2-4-g does not require double quotes, as per coding-style, please use single quotes.

PHP provides two ways to mark string literals. Either with single quotes 'literal' or with double quotes "literal". The difference between these is that string literals in double quotes may contain variables with are evaluated at run-time as well as escape sequences.

String literals in single quotes on the other hand are evaluated very literally and the only two characters that needs escaping in the literal are the single quote itself (\') and the backslash (\\). Every other character is displayed as is.

Double quoted string literals may contain other variables or more complex escape sequences.

<?php

$singleQuoted = 'Value';
$doubleQuoted = "\tSingle is $singleQuoted";

print $doubleQuoted;

will print an indented: Single is Value

If your string literal does not contain variables or escape sequences, it should be defined using single quotes to make that fact clear.

For more information on PHP string literals and available escape sequences see the PHP core documentation.

Loading history...
173
                Version::parse("2.3.4-3-g"),
0 ignored issues
show
Coding Style Comprehensibility introduced by
The string literal 2.3.4-3-g does not require double quotes, as per coding-style, please use single quotes.

PHP provides two ways to mark string literals. Either with single quotes 'literal' or with double quotes "literal". The difference between these is that string literals in double quotes may contain variables with are evaluated at run-time as well as escape sequences.

String literals in single quotes on the other hand are evaluated very literally and the only two characters that needs escaping in the literal are the single quote itself (\') and the backslash (\\). Every other character is displayed as is.

Double quoted string literals may contain other variables or more complex escape sequences.

<?php

$singleQuoted = 'Value';
$doubleQuoted = "\tSingle is $singleQuoted";

print $doubleQuoted;

will print an indented: Single is Value

If your string literal does not contain variables or escape sequences, it should be defined using single quotes to make that fact clear.

For more information on PHP string literals and available escape sequences see the PHP core documentation.

Loading history...
174
                Version::parse("2.3.4-3-gsh4hajk7"),
0 ignored issues
show
Coding Style Comprehensibility introduced by
The string literal 2.3.4-3-gsh4hajk7 does not require double quotes, as per coding-style, please use single quotes.

PHP provides two ways to mark string literals. Either with single quotes 'literal' or with double quotes "literal". The difference between these is that string literals in double quotes may contain variables with are evaluated at run-time as well as escape sequences.

String literals in single quotes on the other hand are evaluated very literally and the only two characters that needs escaping in the literal are the single quote itself (\') and the backslash (\\). Every other character is displayed as is.

Double quoted string literals may contain other variables or more complex escape sequences.

<?php

$singleQuoted = 'Value';
$doubleQuoted = "\tSingle is $singleQuoted";

print $doubleQuoted;

will print an indented: Single is Value

If your string literal does not contain variables or escape sequences, it should be defined using single quotes to make that fact clear.

For more information on PHP string literals and available escape sequences see the PHP core documentation.

Loading history...
175
                Version::parse("2.3.4-3-gsh4hbjk7"),
0 ignored issues
show
Coding Style Comprehensibility introduced by
The string literal 2.3.4-3-gsh4hbjk7 does not require double quotes, as per coding-style, please use single quotes.

PHP provides two ways to mark string literals. Either with single quotes 'literal' or with double quotes "literal". The difference between these is that string literals in double quotes may contain variables with are evaluated at run-time as well as escape sequences.

String literals in single quotes on the other hand are evaluated very literally and the only two characters that needs escaping in the literal are the single quote itself (\') and the backslash (\\). Every other character is displayed as is.

Double quoted string literals may contain other variables or more complex escape sequences.

<?php

$singleQuoted = 'Value';
$doubleQuoted = "\tSingle is $singleQuoted";

print $doubleQuoted;

will print an indented: Single is Value

If your string literal does not contain variables or escape sequences, it should be defined using single quotes to make that fact clear.

For more information on PHP string literals and available escape sequences see the PHP core documentation.

Loading history...
176
                Version::parse("2.31.0-4-g"),
0 ignored issues
show
Coding Style Comprehensibility introduced by
The string literal 2.31.0-4-g does not require double quotes, as per coding-style, please use single quotes.

PHP provides two ways to mark string literals. Either with single quotes 'literal' or with double quotes "literal". The difference between these is that string literals in double quotes may contain variables with are evaluated at run-time as well as escape sequences.

String literals in single quotes on the other hand are evaluated very literally and the only two characters that needs escaping in the literal are the single quote itself (\') and the backslash (\\). Every other character is displayed as is.

Double quoted string literals may contain other variables or more complex escape sequences.

<?php

$singleQuoted = 'Value';
$doubleQuoted = "\tSingle is $singleQuoted";

print $doubleQuoted;

will print an indented: Single is Value

If your string literal does not contain variables or escape sequences, it should be defined using single quotes to make that fact clear.

For more information on PHP string literals and available escape sequences see the PHP core documentation.

Loading history...
177
                Version::parse("2.31.1-4-g"),
0 ignored issues
show
Coding Style Comprehensibility introduced by
The string literal 2.31.1-4-g does not require double quotes, as per coding-style, please use single quotes.

PHP provides two ways to mark string literals. Either with single quotes 'literal' or with double quotes "literal". The difference between these is that string literals in double quotes may contain variables with are evaluated at run-time as well as escape sequences.

String literals in single quotes on the other hand are evaluated very literally and the only two characters that needs escaping in the literal are the single quote itself (\') and the backslash (\\). Every other character is displayed as is.

Double quoted string literals may contain other variables or more complex escape sequences.

<?php

$singleQuoted = 'Value';
$doubleQuoted = "\tSingle is $singleQuoted";

print $doubleQuoted;

will print an indented: Single is Value

If your string literal does not contain variables or escape sequences, it should be defined using single quotes to make that fact clear.

For more information on PHP string literals and available escape sequences see the PHP core documentation.

Loading history...
178
                Version::parse("2.31.11-4-g"),
0 ignored issues
show
Coding Style Comprehensibility introduced by
The string literal 2.31.11-4-g does not require double quotes, as per coding-style, please use single quotes.

PHP provides two ways to mark string literals. Either with single quotes 'literal' or with double quotes "literal". The difference between these is that string literals in double quotes may contain variables with are evaluated at run-time as well as escape sequences.

String literals in single quotes on the other hand are evaluated very literally and the only two characters that needs escaping in the literal are the single quote itself (\') and the backslash (\\). Every other character is displayed as is.

Double quoted string literals may contain other variables or more complex escape sequences.

<?php

$singleQuoted = 'Value';
$doubleQuoted = "\tSingle is $singleQuoted";

print $doubleQuoted;

will print an indented: Single is Value

If your string literal does not contain variables or escape sequences, it should be defined using single quotes to make that fact clear.

For more information on PHP string literals and available escape sequences see the PHP core documentation.

Loading history...
179
            ]],
180
            'Version[] + integer[]' => [[
181
                1,
182
                new Version(1, 0, 1, 3),
183
                new Version(1, 0, 11, 3),
184
                new Version(1, 1, 1, 0),
185
            ]],
186
            'Version[] + string[]'  => [[
187
                '0.0',
188
                new Version(0, 0, 9, 3),
189
                '0.1.0',
190
            ]],
191
            'Version[] + string[] (1 non parseable string)'  => [[
192
                '0.1.0',
193
                'invalid string',
194
                new Version(1, 0, 1, 3),
195
            ]],
196
            'Version[] + array[]'   => [[
197
                [],
198
                [0, 1, 0],
199
                new Version(1, 0, 1, 3),
200
            ]],
201
        ];
202
    }
203
204
    public function IEquatableMethodArgumentsProvider()
205
    {
206
        return [
207
            [true, new Version(1, 2), new Version(1, 2)],
208
            [false, new Version(1, 4), new Version(1, 2)],
209
            [false, new Version(1, 2, 1), new Version(1, 2, 2)],
210
            [false, new Version(1, 2, 1), 123],
211
            [false, new Version(1, 2, 1), 2345654675675675673453],
212
            [false, new Version(1, 2, 1), '1.2.1'],
213
            [false, new Version(1, 2, 1), [1, 2, 1]],
214
            [false, new Version(1, 2, 1), new \stdClass],
215
        ];
216
    }
217
218
    protected $parseableStrings = [
219
        'valid' => [
220
            '1.0',
221
            '0.2',
222
            '2.3.2-3-g726351',
223
            '2.3.2.3-2-g726352',
224
            '3.0.1',
225
            '4.0.2.0',
226
            '5.0.0.3-beta',
227
            '6.0.0-alpha',
228
        ],
229
        'invalid' => [
230
            '0.0',
231
            '1.0..1',
232
            '2.0.0-alpha.0',
233
            '2.3.2-3-g726353.3',
234
            '2.3.2-3-g726356.1-2-gyt4f4',
235
            '3.0.1-alpha.1',
236
            '4.0.0-alpha.0-beta',
237
            '5.0.1-alpha.2-beta',
238
        ],
239
    ];
240
241
    public function isValidProvider()
242
    {
243
        $args = [];
244
245 View Code Duplication
        foreach ($this->parseableStrings['valid'] as $str) {
0 ignored issues
show
Duplication introduced by
This code seems to be duplicated across your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
246
            $args[$str] = [true, Version::parse($str)];
247
        }
248
249 View Code Duplication
        foreach ($this->parseableStrings['invalid'] as $str) {
0 ignored issues
show
Duplication introduced by
This code seems to be duplicated across your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
250
            $args[$str] = [false, Version::parse($str)];
251
        }
252
253
        return $args;
254
    }
255
256
    public function toStringMethodProvider()
257
    {
258
        return [
259
            ['1.0', new Version(1, 0)],
260
            ['0.2', new Version(0, 2)],
261
            ['2.3.2-3-g726351', new Version(2, 3, '2-3-g726351')],
262
            ['2.3.2.3-2-g726352', new Version(2, 3, 2, '3-2-g726352')],
263
            ['3.0.1', new Version(3, 0, 1)],
264
            ['4.0.2.0', new Version(4, 0, 2, 0)],
265
            ['5.0.0.3-beta', new Version(5, 0, 0, '3-beta')],
266
            ['6.0.0-alpha', new Version(6, 0, '0-alpha')],
267
        ];
268
    }
269
}
270