26 Zeilen
700 B
PHP
26 Zeilen
700 B
PHP
|
<?php namespace Todaymade\Daux;
|
||
|
|
||
|
class DauxHelperTest extends \PHPUnit_Framework_TestCase {
|
||
|
|
||
|
public function providerGetFilenames() {
|
||
|
return [
|
||
|
[["Page.html", "Page"], "Page.html"],
|
||
|
[["Page.html", "Page"], "Page.md"],
|
||
|
[["Page.html", "Page"], "Page"],
|
||
|
[["Code_Highlighting.html", "Code_Highlighting"], "05_Code_Highlighting.md"],
|
||
|
];
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @dataProvider providerGetFilenames
|
||
|
*/
|
||
|
public function testGetFilenames($expected, $node) {
|
||
|
|
||
|
$config = new Config();
|
||
|
$config['valid_content_extensions'] = ['md'];
|
||
|
|
||
|
$this->assertEquals($expected, DauxHelper::getFilenames($config, $node));
|
||
|
}
|
||
|
|
||
|
}
|