[ Index ] |
PHP Cross Reference of DokuWiki |
[Summary view] [Print] [Text view]
1 <?php 2 3 namespace dokuwiki\test; 4 5 class InfoTest extends \DokuWikiTest 6 { 7 8 /** 9 * @see testParseVersionString 10 */ 11 public function provideVersions() 12 { 13 return [ 14 [ 15 'rc2010-10-07 "Lazy Sunday"', 16 [ 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"', 23 ], 24 ], 25 [ 26 '2017-02-19d "Frusterick Manners"', 27 [ 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"', 34 ], 35 ], 36 [ 37 '2017-02-19 "Frusterick Manners"', 38 [ 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"', 45 ], 46 ], 47 ]; 48 } 49 50 /** 51 * @dataProvider provideVersions 52 */ 53 public function testParseVersionString($version, $expected) 54 { 55 $this->assertEquals($expected, \dokuwiki\Info::parseVersionString($version)); 56 } 57 58 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body