public function testIsValid()
 {
     // test invalid by normal validation actions
     $rrule = new Calendar_Model_Rrule(array('interval' => 'NotAnInt'), true);
     $rrule->bypassFilters = false;
     $this->assertFalse($rrule->isValid(false));
     // count and until are not allowed together
     $rrule = new Calendar_Model_Rrule(array('count' => '10', 'until' => '2012-01-09 09:33:00'), true);
     $this->assertFalse($rrule->isValid(false), 'until & count');
     // test invalid by setFromString
     $this->setExpectedException('Tinebase_Exception_Record_Validation');
     $rruleString = "FREQ=WEEKLY;INTERVAL=NotAnInt";
     $rrule = new Calendar_Model_Rrule(array());
     $rrule->setFromString($rruleString);
 }