diff options
Diffstat (limited to 'vendor/eluceo/ical/tests/Eluceo/iCal/Property/ArrayValueTest.php')
-rw-r--r-- | vendor/eluceo/ical/tests/Eluceo/iCal/Property/ArrayValueTest.php | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/vendor/eluceo/ical/tests/Eluceo/iCal/Property/ArrayValueTest.php b/vendor/eluceo/ical/tests/Eluceo/iCal/Property/ArrayValueTest.php new file mode 100644 index 00000000..1d1b3331 --- /dev/null +++ b/vendor/eluceo/ical/tests/Eluceo/iCal/Property/ArrayValueTest.php @@ -0,0 +1,26 @@ +<?php + +namespace Eluceo\iCal\Property; + +class ArrayValueTest extends \PHPUnit_Framework_TestCase +{ + /** + * @dataProvider arrayValuesProvider + */ + public function testArrayValue($values, $expectedOutput) + { + $arrayValue = new ArrayValue($values); + + $this->assertEquals($expectedOutput, $arrayValue->getEscapedValue()); + } + + public function arrayValuesProvider() + { + return array( + array(array(), ''), + array(array('Lorem'), 'Lorem'), + array(array('Lorem', 'Ipsum'), 'Lorem,Ipsum'), + array(array('Lorem', '"doublequotes"'), 'Lorem,\"doublequotes\"'), + ); + } +} |