3 namespace dokuwiki\test
;
5 class InfoTest
extends \DokuWikiTest
9 * @see testParseVersionString
11 public function provideVersions()
15 'rc2010-10-07 "Lazy Sunday"',
18 'date' => '2010-10-07',
20 'version' => '2010-10-07rc',
21 'codename' => 'Lazy Sunday',
22 'raw' => 'rc2010-10-07 "Lazy Sunday"',
26 '2017-02-19d "Frusterick Manners"',
29 'date' => '2017-02-19',
31 'version' => '2017-02-19d',
32 'codename' => 'Frusterick Manners',
33 'raw' => '2017-02-19d "Frusterick Manners"',
37 '2017-02-19 "Frusterick Manners"',
40 'date' => '2017-02-19',
42 'version' => '2017-02-19',
43 'codename' => 'Frusterick Manners',
44 'raw' => '2017-02-19 "Frusterick Manners"',
51 * @dataProvider provideVersions
53 public function testParseVersionString($version, $expected)
55 $this->assertEquals($expected, \dokuwiki\Info
::parseVersionString($version));