fixes #48
[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         exec(
11             'xsltproc'
12             . ' ../templates/html2tomboy.xsl'
13             . ' data/full-formattest.html'
14             . ' | diff -u data/formattest.tomboynotecontent -',
15             $out,
16             $retval
17         );
18         $this->assertEquals(
19             0, $retval,
20             "diff exit status is not 0:\n" . implode("\n", $out)
21         );
22     }
23 }
24 ?>