File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -25,13 +25,10 @@ public function testDataFiles(): void
25
25
$ converter = new MarkdownConverter ($ environment );
26
26
$ markdownFiles = \glob (\dirname (__DIR__ ) . '/data/*.md ' );
27
27
foreach ($ markdownFiles as $ markdownFile ) {
28
- if (\basename ($ markdownFile ) === 'README.md ' ) {
29
- continue ;
30
- }
31
-
32
28
$ workingDir = \dirname ($ markdownFile );
33
29
// Create a temp tex file in the tests directory, so it's got access to images etc.
34
- $ tmpTexFile = $ workingDir . '/CompileTest_ ' . \pathinfo ($ markdownFile , PATHINFO_FILENAME ) . '.tex ' ;
30
+ $ prefix = $ workingDir . '/CompileTest_ ' ;
31
+ $ tmpTexFile = $ prefix . \pathinfo ($ markdownFile , PATHINFO_FILENAME ) . '.tex ' ;
35
32
$ markdown = \file_get_contents ($ markdownFile );
36
33
$ latex = "\\documentclass{article} \n"
37
34
. "\\usepackage{listings, graphicx, hyperref, footmisc} \n"
@@ -43,6 +40,8 @@ public function testDataFiles(): void
43
40
$ process ->mustRun ();
44
41
$ this ->assertStringContainsString ('Output written ' , $ process ->getOutput ());
45
42
$ this ->assertStringContainsString ('1 page ' , $ process ->getOutput ());
43
+ // Delete temp files.
44
+ \array_map ('unlink ' , \glob ($ prefix . '* ' ));
46
45
}
47
46
}
48
47
}
You can’t perform that action at this time.
0 commit comments