diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/app/Elements/FormTest.php | 10 |
1 files changed, 10 insertions, 0 deletions
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")); + } } |
