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