43 lines
1.4 KiB
YAML
43 lines
1.4 KiB
YAML
|
name: IcuVersionTest
|
||
|
class_comment: '# * @author Bernhard Schussek <bschussek@gmail.com>'
|
||
|
dependencies:
|
||
|
- name: TestCase
|
||
|
type: class
|
||
|
source: PHPUnit\Framework\TestCase
|
||
|
- name: IcuVersion
|
||
|
type: class
|
||
|
source: Symfony\Component\Intl\Util\IcuVersion
|
||
|
properties: []
|
||
|
methods:
|
||
|
- name: testNormalize
|
||
|
visibility: public
|
||
|
parameters:
|
||
|
- name: precision
|
||
|
- name: version
|
||
|
- name: result
|
||
|
comment: "# * @author Bernhard Schussek <bschussek@gmail.com>\n# */\n# class IcuVersionTest\
|
||
|
\ extends TestCase\n# {\n# public static function normalizeProvider()\n# {\n#\
|
||
|
\ return [\n# [null, '1', '10'],\n# [null, '1.2', '12'],\n# [null, '1.2.3', '12.3'],\n\
|
||
|
# [null, '1.2.3.4', '12.3.4'],\n# [1, '1', '10'],\n# [1, '1.2', '12'],\n# [1,\
|
||
|
\ '1.2.3', '12'],\n# [1, '1.2.3.4', '12'],\n# [2, '1', '10'],\n# [2, '1.2', '12'],\n\
|
||
|
# [2, '1.2.3', '12.3'],\n# [2, '1.2.3.4', '12.3'],\n# [3, '1', '10'],\n# [3, '1.2',\
|
||
|
\ '12'],\n# [3, '1.2.3', '12.3'],\n# [3, '1.2.3.4', '12.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\IcuVersion
|
||
|
interfaces: []
|