From 9e2b2a32fd0e967ad3184e9a5d091a29953acb91 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Wed, 25 Oct 2017 16:22:10 -0700 Subject: Include composer dependencies in repo --- .../ical/tests/Eluceo/iCal/ParameterBagTest.php | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 vendor/eluceo/ical/tests/Eluceo/iCal/ParameterBagTest.php (limited to 'vendor/eluceo/ical/tests/Eluceo/iCal/ParameterBagTest.php') diff --git a/vendor/eluceo/ical/tests/Eluceo/iCal/ParameterBagTest.php b/vendor/eluceo/ical/tests/Eluceo/iCal/ParameterBagTest.php new file mode 100644 index 00000000..0fb6e84c --- /dev/null +++ b/vendor/eluceo/ical/tests/Eluceo/iCal/ParameterBagTest.php @@ -0,0 +1,35 @@ +assertEquals( + 'test string', + $propertyObject->escapeParamValue('test string'), + 'No escaping necessary' + ); + + $this->assertEquals( + '"Containing \\"double-quotes\\""', + $propertyObject->escapeParamValue('Containing "double-quotes"'), + 'Text contains double quotes' + ); + + $this->assertEquals( + '"Containing forbidden chars like a ;"', + $propertyObject->escapeParamValue('Containing forbidden chars like a ;'), + 'Text with semicolon' + ); + + $this->assertEquals( + '"Containing forbidden chars like a :"', + $propertyObject->escapeParamValue('Containing forbidden chars like a :'), + 'Text with colon' + ); + } +} -- cgit v1.2.3