Make test comply.
This commit is contained in:
parent
b5dac16def
commit
1d1c089f84
1 changed files with 5 additions and 5 deletions
|
@ -12,7 +12,7 @@ use PHPUnit\Framework\TestCase;
|
|||
*/
|
||||
class StringsTest extends TestCase
|
||||
{
|
||||
/**
|
||||
/**
|
||||
* randomnames should be random, even length
|
||||
*/
|
||||
public function testRandomEven()
|
||||
|
@ -64,9 +64,9 @@ class StringsTest extends TestCase
|
|||
|
||||
$randomname2 = Strings::getRandomName(1);
|
||||
$this->assertEquals(1, strlen($randomname2));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
/**
|
||||
* test, that tags are escaped
|
||||
*/
|
||||
public function testEscapeHtml()
|
||||
|
@ -78,7 +78,7 @@ class StringsTest extends TestCase
|
|||
|
||||
$this->assertEquals('[submit type="button" onclick="alert(\'failed!\');" /]', $validstring);
|
||||
$this->assertEquals(
|
||||
"<submit type="button" onclick="alert('failed!');" />",
|
||||
'<submit type="button" onclick="alert('failed!');" />',
|
||||
$escapedString
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue