From 468aa3a29065fc17b49a36ffd09619bda4de6d9a Mon Sep 17 00:00:00 2001 From: Greg Roach Date: Tue, 6 Apr 2021 11:22:58 +0100 Subject: Testing --- tests/app/Elements/FormTest.php | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tests') diff --git a/tests/app/Elements/FormTest.php b/tests/app/Elements/FormTest.php index b35bbc524e..c75706e627 100644 --- a/tests/app/Elements/FormTest.php +++ b/tests/app/Elements/FormTest.php @@ -36,4 +36,14 @@ class FormTest extends AbstractElementTest self::$element = new Form('label'); } + + /** + * @return void + */ + public function testCanonical(): void + { + self::assertSame('FOO BAR BAZ', self::$element->canonical("Foo bAr baZ")); + self::assertSame('FOO BAR BAZ', self::$element->canonical("\t Foo\t bAr \tbaZ\t ")); + self::assertSame('FOO BAR BAZ', self::$element->canonical("\nFoo \n\r bAr \r\n baZ\r")); + } } -- cgit v1.3