Register CSS files via API
[grauphel.git] / tests / html2tomboyXslTest.php
1 <?php
2 class html2tomboyXslTest extends \PHPUnit\Framework\TestCase
3 {
4     /**
5      * Use xsltproc and diff to check if the XSL file generates
6      * the same output as we expect.
7      */
8     public function testFormat()
9     {
10         chdir(__DIR__);
11         exec(
12             'xsltproc'
13             . ' ../templates/html2tomboy.xsl'
14             . ' data/full-formattest.html'
15             . ' | diff -u data/formattest.tomboynotecontent -',
16             $out,
17             $retval
18         );
19         $this->assertEquals(
20             0, $retval,
21             "diff exit status is not 0:\n" . implode("\n", $out)
22         );
23     }
24 }
25 ?>