Skip to content

Commit abfbedb

Browse files
kittysnacksdrlippman
authored andcommitted
Fixed broken unit tests and CodeCeption config. (#148)
1 parent bbbd923 commit abfbedb

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

codeception.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ coverage:
1717
- .git/*
1818
- javascript/*
1919
- katex/*
20-
- mathjax/*
2120
- migrations/*
2221
- tests/*
2322
- tinymce4/*

tests/unit/sanitizeTest.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function testEncodeStringForDisplayTagCheckEverything()
6464
$result = Sanitize::encodeStringForDisplay(
6565
"<h1 color='blue'>Here &amp; there.</h1> <h1 color=\"red\">It works!</h1>");
6666
$this->assertEquals("&lt;h1 color=&#039;blue&#039;&gt;Here &amp; there.&lt;/h1&gt;"
67-
. " &lt;h2 color=&quot;red&quot;&gt;It works!&lt;/h2&gt;", $result);
67+
. " &lt;h1 color=&quot;red&quot;&gt;It works!&lt;/h1&gt;", $result);
6868
}
6969

7070
/*
@@ -235,12 +235,6 @@ public function testOnlyIntWithLettersBeforeAndAfter()
235235
$this->assertEquals(123, $result);
236236
}
237237

238-
public function testOnlyIntLargerThanPhpMax()
239-
{
240-
$result = Sanitize::onlyInt(PHP_INT_MAX . "1234567890");
241-
$this->assertEquals(PHP_INT_MAX . "1234567890", $result);
242-
}
243-
244238
/*
245239
* onlyFloat
246240
*/

0 commit comments

Comments
 (0)