/** * ; 'description' is optional, * ; and MUST NOT occur more than once */ public function testDescriptionIsOptionalAndCannotOccurMoreThanOnce() { $alarm = new qCal_Component_Valarm(array('action' => 'procedure', 'trigger' => 'P15M', 'attach' => 'http://www.example.com/foo')); $alarm->addProperty(new qCal_Property_Description('This is a description')); $alarm->addProperty(new qCal_Property_Description('This is another description')); $this->assertEqual(count($alarm->getProperty('description')), 1); }