rfcString() public method

Format a rule according to RFC 5545
public rfcString ( boolean $include_timezone = true ) : string
$include_timezone boolean Wether to generate a rule with timezone identifier on DTSTART (and UNTIL) or not.
return string
コード例 #1
0
ファイル: RRuleTest.php プロジェクト: rlanvin/php-rrule
 /**
  * @dataProvider rfcStringsGenerated
  */
 public function testRfcStringsGenerated($params, $expected_str)
 {
     $rule = new RRule($params);
     $this->assertEquals($expected_str, $rule->rfcString());
 }