--- /dev/null
+language: php
+sudo: false
+php:
+ - 7
+ - 5.6
+ - 5.5
+ - 5.4
+script:
+ - cd tests
+ - phpunit .
incremented by 1.
+Unit testing
+============
+- `ownCloud unit testing documentation`__
+- `grauphel on Travis CI`__
+
+ .. image:: https://travis-ci.org/cweiske/grauphel.svg
+ :target: https://travis-ci.org/cweiske/grauphel
+
+__ https://doc.owncloud.org/server/8.0/developer_manual/core/unit-testing.html
+__ https://travis-ci.org/cweiske/grauphel
+
+
Releasing grauphel
==================
To release a new version, do the following:
<?php
+require_once __DIR__ . '/../../../lib/converter/base.php';
require_once __DIR__ . '/../../../lib/converter/html.php';
class Lib_Converter_HtmlTest extends PHPUnit_Framework_TestCase
{
$input = file_get_contents(__DIR__ . '/../../data/formattest.tomboynotecontent');
- $converter = new OCA\Grauphel\Lib\Converter\Html();
+ $converter = new OCA\Grauphel\Converter\Html();
$output = $converter->convert($input);
$this->assertEquals(
file_get_contents(__DIR__ . '/../../data/formattest.html'),
{
$input = file_get_contents(__DIR__ . '/../../data/xss.tomboynotecontent');
- $converter = new OCA\Grauphel\Lib\Converter\Html();
+ $converter = new OCA\Grauphel\Converter\Html();
$output = $converter->convert($input);
$this->assertEquals(
file_get_contents(__DIR__ . '/../../data/xss.html'),
<i>Kursiver Text</i><br />
<span class="strikethrough">Durchgestrichener Text</span><br />
<span class="highlight">Hervorgehobener Text</span><br />
-<tt>Feste Breite</tt><br />
+<span style="font-family:monospace; white-space: pre-wrap">Feste Breite</span><br />
<br />
Schriftgrößen:<br />
<span class="small">klein</span><br />
Link mit fett drin: <a href="Formattest.htm">Format<b>te</b>st</a>.<br />
<ul><li>Liste<br />
</li><li>ein <b>bisschen</b> fett<br />
-</li><li>mo<tt>nospac</tt>ed<br />
+</li><li>mo<span style="font-family:monospace; white-space: pre-wrap">nospac</span>ed<br />
</li><li></li></ul></div></div></div></div></div></li></ul>
<br />
-Link zum <a href="Formattest.htm"><span class="highlight">Form</span>a<tt>tt</tt>e<span class="huge">st</span></a>.<br />
+Link zum <a href="Formattest.htm"><span class="highlight">Form</span>a<span style="font-family:monospace; white-space: pre-wrap">tt</span>e<span class="huge">st</span></a>.<br />
Link mit <a href="Sonder">zeichen.htm">Sonder">zeichen</a>.<br />