aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/Photo/PhotoGdTest.php4
-rw-r--r--tests/unit/includes/MarkdownTest.php4
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/unit/Photo/PhotoGdTest.php b/tests/unit/Photo/PhotoGdTest.php
index 1d4f9467f..ae7382c43 100644
--- a/tests/unit/Photo/PhotoGdTest.php
+++ b/tests/unit/Photo/PhotoGdTest.php
@@ -26,7 +26,7 @@ class PhotoGdTest extends UnitTestCase {
/**
* Prepares the environment before running a test.
*/
- protected function setUp() {
+ protected function setUp(): void {
parent::setUp();
$data = file_get_contents('images/hz-16.png');
@@ -37,7 +37,7 @@ class PhotoGdTest extends UnitTestCase {
/**
* Cleans up the environment after running a test.
*/
- protected function tearDown() {
+ protected function tearDown(): void {
$this->photoGd = null;
parent::tearDown();
diff --git a/tests/unit/includes/MarkdownTest.php b/tests/unit/includes/MarkdownTest.php
index 61600988d..2a92a58d2 100644
--- a/tests/unit/includes/MarkdownTest.php
+++ b/tests/unit/includes/MarkdownTest.php
@@ -64,11 +64,11 @@ class MarkdownTest extends UnitTestCase {
],
'HTML entities, lt does not work' => [
'& gt > lt <',
- '& gt > lt'
+ '&amp; gt &gt; lt'
],
'escaped HTML entities' => [
'&amp; lt &lt; gt &gt;',
- '& lt < gt >'
+ '&amp; lt &lt; gt &gt;'
],
'linebreak' => [
"line1<br>line2\nline3",