Merge pull request #3969 from dokuwiki-translate/lang_update_635_1684167422
[dokuwiki.git] / _test / tests / InfoTest.php
blob48360141006edfe5e5c5fd43134717867eb97433
1 <?php
3 namespace dokuwiki\test;
5 class InfoTest extends \DokuWikiTest
8 /**
9 * @see testParseVersionString
11 public function provideVersions()
13 return [
15 'rc2010-10-07 "Lazy Sunday"',
17 'type' => 'rc',
18 'date' => '2010-10-07',
19 'hotfix' => '',
20 'version' => '2010-10-07rc',
21 'codename' => 'Lazy Sunday',
22 'raw' => 'rc2010-10-07 "Lazy Sunday"',
26 '2017-02-19d "Frusterick Manners"',
28 'type' => 'stable',
29 'date' => '2017-02-19',
30 'hotfix' => 'd',
31 'version' => '2017-02-19d',
32 'codename' => 'Frusterick Manners',
33 'raw' => '2017-02-19d "Frusterick Manners"',
37 '2017-02-19 "Frusterick Manners"',
39 'type' => 'stable',
40 'date' => '2017-02-19',
41 'hotfix' => '',
42 'version' => '2017-02-19',
43 'codename' => 'Frusterick Manners',
44 'raw' => '2017-02-19 "Frusterick Manners"',
50 /**
51 * @dataProvider provideVersions
53 public function testParseVersionString($version, $expected)
55 $this->assertEquals($expected, \dokuwiki\Info::parseVersionString($version));