Skip to content

Commit 5dba91a

Browse files
committed
Fixed unittest.
1 parent e3df784 commit 5dba91a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/Sabre/VObject/Property/DateTimeTest.php renamed to tests/Sabre/VObject/Property/ICalendar/DateTimeTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Sabre\VObject\Property;
3+
namespace Sabre\VObject\Property\ICalendar;
44

55
use
66
Sabre\VObject\Component,
@@ -27,7 +27,7 @@ function testSetDateTime() {
2727

2828
$this->assertEquals('19850704T013000', (string)$elem);
2929
$this->assertEquals('Europe/Amsterdam', (string)$elem['TZID']);
30-
$this->assertEquals('DATE-TIME', (string)$elem['VALUE']);
30+
$this->assertNull($elem['VALUE']);
3131

3232
$this->assertTrue($elem->hasTime());
3333

@@ -106,7 +106,7 @@ function testSetValue() {
106106

107107
$this->assertEquals('19850704T013000', (string)$elem);
108108
$this->assertEquals('Europe/Amsterdam', (string)$elem['TZID']);
109-
$this->assertEquals('DATE-TIME', (string)$elem['VALUE']);
109+
$this->assertNull($elem['VALUE']);
110110

111111
$this->assertTrue($elem->hasTime());
112112

@@ -125,7 +125,7 @@ function testSetValueArray() {
125125

126126
$this->assertEquals('19850704T013000,19850704T023000', (string)$elem);
127127
$this->assertEquals('Europe/Amsterdam', (string)$elem['TZID']);
128-
$this->assertEquals('DATE-TIME', (string)$elem['VALUE']);
128+
$this->assertNull($elem['VALUE']);
129129

130130
$this->assertTrue($elem->hasTime());
131131

@@ -144,7 +144,7 @@ function testSetParts() {
144144

145145
$this->assertEquals('19850704T013000,19850704T023000', (string)$elem);
146146
$this->assertEquals('Europe/Amsterdam', (string)$elem['TZID']);
147-
$this->assertEquals('DATE-TIME', (string)$elem['VALUE']);
147+
$this->assertNull($elem['VALUE']);
148148

149149
$this->assertTrue($elem->hasTime());
150150

0 commit comments

Comments
 (0)