Skip to content

Commit 8f07793

Browse files
committed
Fix date in tests
1 parent fa5f86b commit 8f07793

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

‎tests/Mf2/ClassicMicroformatsTest.php

+6-2
Original file line numberDiff line numberDiff line change
@@ -1039,9 +1039,11 @@ public function testVeventLocationVcardProperty() {
10391039
* @see https://github.com/microformats/php-mf2/issues/184
10401040
*/
10411041
public function testVeventLocationAdrProperty() {
1042+
// date fix, see: https://cpj.org/2012/10/cpj-impact-43/
1043+
// "second annual Online Press Freedom Summit in San Francisco on October 10"
10421044
$input = '<div class="vevent">
10431045
<span class="summary">CPJ Online Press Freedom Summit</span>
1044-
(<time class="dtstart" datetime="2012-10-10">10 Nov 2012</time>) in
1046+
(<time class="dtstart" datetime="2012-10-10">10 Oct 2012</time>) in
10451047
<span class="location adr"><span class="street-address">665 3rd St.</span><span class="locality">San Francisco</span>, <span class="region">CA</span> </span>.
10461048
</div>';
10471049
$parser = new Parser($input, 'https://example.com');
@@ -1056,9 +1058,11 @@ public function testVeventLocationAdrProperty() {
10561058
* @see https://github.com/microformats/php-mf2/issues/184
10571059
*/
10581060
public function testVeventLocationProperty() {
1061+
// date fix, see: https://cpj.org/2012/10/cpj-impact-43/
1062+
// "second annual Online Press Freedom Summit in San Francisco on October 10"
10591063
$input = '<div class="vevent">
10601064
<span class="summary">CPJ Online Press Freedom Summit</span>
1061-
(<time class="dtstart" datetime="2012-10-10">10 Nov 2012</time>) in
1065+
(<time class="dtstart" datetime="2012-10-10">10 Oct 2012</time>) in
10621066
<span class="location">San Francisco</span>.
10631067
</div>';
10641068
$parser = new Parser($input, 'https://example.com');

0 commit comments

Comments
 (0)