Skip to content

Commit 83b8291

Browse files
committed
Minor fixes in unittests.
1 parent 5f29736 commit 83b8291

File tree

5 files changed

+17
-8
lines changed

5 files changed

+17
-8
lines changed

ChangeLog

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
3.1.1-stable (2013-08-02)
2+
* Fixed: Issue #53. A regression in RecurrenceIterator.
3+
14
3.1.0-stable (2013-07-27)
25
* Added: bad-ass new cli debugging utility (in bin/vobject).
36
* Added: jCal and jCard parser.

lib/Sabre/VObject/Version.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ class Version {
1414
/**
1515
* Full version number
1616
*/
17-
const VERSION = '3.1.0';
17+
const VERSION = '3.1.1';
1818

1919
}

tests/Sabre/VObject/CliTest.php

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,9 @@ public function testConvertJson() {
145145
);
146146

147147
rewind($this->cli->stdout);
148+
$version = Version::VERSION;
148149
$this->assertEquals(
149-
'["vcard",[["version",{},"text","4.0"],["prodid",{},"text","-\/\/Sabre\/\/Sabre VObject 3.1.0\/\/EN"],["fn",{},"text","Cowboy Henk"]]]',
150+
'["vcard",[["version",{},"text","4.0"],["prodid",{},"text","-\/\/Sabre\/\/Sabre VObject '. $version .'\/\/EN"],["fn",{},"text","Cowboy Henk"]]]',
150151
stream_get_contents($this->cli->stdout)
151152
);
152153

@@ -176,6 +177,7 @@ public function testConvertJCardPretty() {
176177
);
177178

178179
rewind($this->cli->stdout);
180+
$version = Version::VERSION;
179181
$expected = <<<JCARD
180182
[
181183
"vcard",
@@ -194,7 +196,7 @@ public function testConvertJCardPretty() {
194196
195197
},
196198
"text",
197-
"-\/\/Sabre\/\/Sabre VObject 3.1.0\/\/EN"
199+
"-\/\/Sabre\/\/Sabre VObject $version\/\/EN"
198200
],
199201
[
200202
"fn",
@@ -345,10 +347,12 @@ public function testVCard3040() {
345347
);
346348

347349
rewind($this->cli->stdout);
350+
351+
$version = Version::VERSION;
348352
$expected = <<<VCF
349353
BEGIN:VCARD
350354
VERSION:4.0
351-
PRODID:-//Sabre//Sabre VObject 3.1.0//EN
355+
PRODID:-//Sabre//Sabre VObject $version//EN
352356
FN:Cowboy Henk
353357
END:VCARD
354358
@@ -382,11 +386,13 @@ public function testVCard4030() {
382386
$this->cli->main(array('vobject', 'convert','--format=vcard30', '--pretty', '-'))
383387
);
384388

389+
$version = Version::VERSION;
390+
385391
rewind($this->cli->stdout);
386392
$expected = <<<VCF
387393
BEGIN:VCARD
388394
VERSION:3.0
389-
PRODID:-//Sabre//Sabre VObject 3.1.0//EN
395+
PRODID:-//Sabre//Sabre VObject $version//EN
390396
FN:Cowboy Henk
391397
END:VCARD
392398

tests/Sabre/VObject/RecurrenceIteratorIncorrectExpandTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ function testExpand() {
4343
VERSION:2.0
4444
BEGIN:VEVENT
4545
UID:foo
46-
DTSTART;VALUE=DATE-TIME:20130711T050000Z
47-
DTEND;VALUE=DATE-TIME:20130711T053000Z
46+
DTSTART:20130711T050000Z
47+
DTEND:20130711T053000Z
4848
END:VEVENT
4949
BEGIN:VEVENT
5050
UID:foo

tests/Sabre/VObject/RecurrenceIteratorMissingOverriddenTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function testExpand() {
4242
VERSION:2.0
4343
BEGIN:VEVENT
4444
UID:foo
45-
DTSTART;VALUE=DATE-TIME:20130727T120000Z
45+
DTSTART:20130727T120000Z
4646
DURATION:PT1H
4747
SUMMARY:A
4848
END:VEVENT

0 commit comments

Comments
 (0)