Skip to content

Commit

Permalink
Cleanup test function
Browse files Browse the repository at this point in the history
  • Loading branch information
kylekatarnls committed Jul 24, 2016
1 parent 2cae771 commit 694d034
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/features/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -481,13 +481,13 @@ public function testNoBaseDir()
$jade->render(__DIR__ . '/../templates/auxiliary/include-sibling.jade');
}

public function renderWithBaseDir($basedir)
public function renderWithBaseDir($basedir, $template)
{
$jade = new Jade(array(
'prettyprint' => true,
'basedir' => $basedir,
));
$code = $jade->render(__DIR__ . '/../templates/auxiliary/include-sibling.jade');
$code = $jade->render($template);

return trim(preg_replace('/\n\s+/', "\n", str_replace("\r", '', $code)));
}
Expand Down

0 comments on commit 694d034

Please sign in to comment.