43 lines
1.5 KiB
YAML
43 lines
1.5 KiB
YAML
name: VersionTest
|
|
class_comment: '# * @author Bernhard Schussek <bschussek@gmail.com>'
|
|
dependencies:
|
|
- name: TestCase
|
|
type: class
|
|
source: PHPUnit\Framework\TestCase
|
|
- name: Version
|
|
type: class
|
|
source: Symfony\Component\Intl\Util\Version
|
|
properties: []
|
|
methods:
|
|
- name: testNormalize
|
|
visibility: public
|
|
parameters:
|
|
- name: precision
|
|
- name: version
|
|
- name: result
|
|
comment: "# * @author Bernhard Schussek <bschussek@gmail.com>\n# */\n# class VersionTest\
|
|
\ extends TestCase\n# {\n# public static function normalizeProvider()\n# {\n#\
|
|
\ return [\n# [null, '1', '1'],\n# [null, '1.2', '1.2'],\n# [null, '1.2.3', '1.2.3'],\n\
|
|
# [null, '1.2.3.4', '1.2.3.4'],\n# [1, '1', '1'],\n# [1, '1.2', '1'],\n# [1, '1.2.3',\
|
|
\ '1'],\n# [1, '1.2.3.4', '1'],\n# [2, '1', '1'],\n# [2, '1.2', '1.2'],\n# [2,\
|
|
\ '1.2.3', '1.2'],\n# [2, '1.2.3.4', '1.2'],\n# [3, '1', '1'],\n# [3, '1.2', '1.2'],\n\
|
|
# [3, '1.2.3', '1.2.3'],\n# [3, '1.2.3.4', '1.2.3'],\n# [4, '1', '1'],\n# [4,\
|
|
\ '1.2', '1.2'],\n# [4, '1.2.3', '1.2.3'],\n# [4, '1.2.3.4', '1.2.3.4'],\n# ];\n\
|
|
# }\n# \n# /**\n# * @dataProvider normalizeProvider"
|
|
- name: compareProvider
|
|
visibility: public
|
|
parameters: []
|
|
comment: null
|
|
- name: testCompare
|
|
visibility: public
|
|
parameters:
|
|
- name: precision
|
|
- name: version1
|
|
- name: operator
|
|
- name: version2
|
|
- name: result
|
|
comment: '# * @dataProvider compareProvider'
|
|
traits:
|
|
- PHPUnit\Framework\TestCase
|
|
- Symfony\Component\Intl\Util\Version
|
|
interfaces: []
|