Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FREQ is mandatory in the RRule #11

Merged
merged 2 commits into from
Jan 30, 2020
Merged

Conversation

valentinbonneaud
Copy link
Collaborator

The Freq property is mandatory in a recurrence rule.

From RFC

  The FREQ rule part identifies the type of recurrence rule.  This
  rule part MUST be specified in the recurrence rule.

https://tools.ietf.org/html/rfc5545#section-3.3.10

Fixes CALENDAR-643

@codecov-io
Copy link

codecov-io commented Jan 30, 2020

Codecov Report

Merging #11 into master will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master      #11      +/-   ##
============================================
+ Coverage     98.86%   98.88%   +0.01%     
- Complexity     1869     1870       +1     
============================================
  Files            65       65              
  Lines          5305     5307       +2     
============================================
+ Hits           5245     5248       +3     
+ Misses           60       59       -1
Impacted Files Coverage Δ Complexity Δ
lib/Recur/RRuleIterator.php 99.37% <100%> (ø) 208 <0> (+1) ⬆️
lib/VCardConverter.php 98.96% <0%> (+0.51%) 70% <0%> (ø) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7933fc2...2591662. Read the comment docs.

@@ -9,6 +9,18 @@

class RRuleIteratorTest extends TestCase
{
/**
* @expectedException \Sabre\VObject\InvalidDataException

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you use instead

$this->expectException(\Sabre\VObject\InvalidDataException::class);

The annotation has been removed in PHPUnit 8 (and deprecated in PHPUnit 7). Sabre/vobject has already begin to move to PHPUnit 8, it will be an issue later

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right, just updated

@valentinbonneaud valentinbonneaud merged commit 647533a into master Jan 30, 2020
@ThHareau ThHareau deleted the feat/validate-freq branch January 30, 2020 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants