summaryrefslogtreecommitdiff
path: root/vendor/eluceo/ical/tests/Eluceo/iCal/PropertyBagTest.php
blob: a7f8d8cea0c8849ad0ef7b2d5d33f18926d0e42b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php

namespace Eluceo\iCal;

class PropertyBagTest extends \PHPUnit_Framework_TestCase
{
    /**
     * @todo Use Mocks instead of a real object!
     */
    public function testPropertyAlreadyExistsOnAddingProperty()
    {
        $this->setExpectedException('\\Exception', "Property with name 'propName' already exists");

        $propertyBag = new PropertyBag();
        $propertyBag->add(new Property('propName', ''));
        $propertyBag->add(new Property('propName', ''));
    }
}