Applied fixes from StyleCI
This commit is contained in:
committed by
Stéphane Goetz
parent
cfc8d30ba2
commit
2314516ce9
@ -1,25 +1,25 @@
|
||||
<?php namespace Todaymade\Daux;
|
||||
|
||||
class DauxHelperTest extends \PHPUnit_Framework_TestCase {
|
||||
|
||||
public function providerGetFilenames() {
|
||||
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"],
|
||||
[['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) {
|
||||
|
||||
public function testGetFilenames($expected, $node)
|
||||
{
|
||||
$config = new Config();
|
||||
$config['valid_content_extensions'] = ['md'];
|
||||
|
||||
$this->assertEquals($expected, DauxHelper::getFilenames($config, $node));
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user