Author: ts
Date: Wed Sep 26 09:01:30 2007
New Revision: 6284
Log:
- Added temporary ezcWebdavDateTime class wrapping around DateTime.
# To avoid serialization issue.
Added:
trunk/Webdav/src/tools/
trunk/Webdav/src/tools/date_time.php (with props)
Modified:
trunk/Webdav/design/class_diagram.png
trunk/Webdav/src/backend/file.php
trunk/Webdav/src/backend/memory.php
trunk/Webdav/src/properties/creationdate.php
trunk/Webdav/src/properties/getlastmodified.php
trunk/Webdav/src/properties/lockdiscovery_activelock.php
trunk/Webdav/src/transport.php
trunk/Webdav/src/webdav_autoload.php
trunk/Webdav/tests/backend_file_test.php
trunk/Webdav/tests/backend_memory_test.php
trunk/Webdav/tests/client_test_cadaver_backend.php
trunk/Webdav/tests/client_test_litmus_backend.php
trunk/Webdav/tests/client_test_rfc_backend.php
trunk/Webdav/tests/clients/litmus/114_props__4_propfind_d0/response/body.xml
trunk/Webdav/tests/property_creationdate_test.php
trunk/Webdav/tests/property_getlastmodified_test.php
trunk/Webdav/tests/property_lockdiscovery_activelock_test.php
Modified: trunk/Webdav/design/class_diagram.png
==============================================================================
Binary files - no diff available.
Modified: trunk/Webdav/src/backend/file.php
==============================================================================
--- trunk/Webdav/src/backend/file.php [iso-8859-1] (original)
+++ trunk/Webdav/src/backend/file.php [iso-8859-1] Wed Sep 26 09:01:30 2007
@@ -384,7 +384,7 @@
case 'getlastmodified':
$property = new ezcWebdavGetLastModifiedProperty();
- $property->date = new DateTime( '@' . filemtime( $this->root .
$resource ) );
+ $property->date = new ezcWebdavDateTime( '@' . filemtime(
$this->root . $resource ) );
return $property;
default:
Modified: trunk/Webdav/src/backend/memory.php
==============================================================================
--- trunk/Webdav/src/backend/memory.php [iso-8859-1] (original)
+++ trunk/Webdav/src/backend/memory.php [iso-8859-1] Wed Sep 26 09:01:30 2007
@@ -156,7 +156,7 @@
// Add default creation date
$propertyStorage->attach(
- new ezcWebdavCreationDateProperty( new DateTime( '@1054034820'
) )
+ new ezcWebdavCreationDateProperty( new ezcWebdavDateTime(
'@1054034820' ) )
);
// Define default display name
@@ -181,7 +181,7 @@
// Define default modification time
$propertyStorage->attach(
- new ezcWebdavGetLastModifiedProperty( new DateTime(
'@1124118780' ) )
+ new ezcWebdavGetLastModifiedProperty( new ezcWebdavDateTime(
'@1124118780' ) )
);
// Define content length if node is a resource.
Modified: trunk/Webdav/src/properties/creationdate.php
==============================================================================
--- trunk/Webdav/src/properties/creationdate.php [iso-8859-1] (original)
+++ trunk/Webdav/src/properties/creationdate.php [iso-8859-1] Wed Sep 26
09:01:30 2007
@@ -10,7 +10,7 @@
/**
* An object of this class represents the Webdav property <creationdate>.
*
- * @property DateTime $date
+ * @property ezcWebdavDateTime $date
* The creation date.
*
* @version //autogentag//
@@ -21,10 +21,10 @@
/**
* Creates a new ezcWebdavCreationDateProperty.
*
- * @param DateTime $date The date value.
+ * @param ezcWebdavDateTime $date The date value.
* @return void
*/
- public function __construct( DateTime $date = null )
+ public function __construct( ezcWebdavDateTime $date = null )
{
parent::__construct( 'creationdate' );
@@ -51,9 +51,9 @@
switch ( $propertyName )
{
case 'date':
- if ( ( $propertyValue instanceof DateTime ) === false &&
$propertyValue !== null )
+ if ( ( $propertyValue instanceof ezcWebdavDateTime ) === false
&& $propertyValue !== null )
{
- return $this->hasError( $propertyName, $propertyValue,
'DateTime' );
+ return $this->hasError( $propertyName, $propertyValue,
'ezcWebdavDateTime' );
}
$this->properties[$propertyName] = $propertyValue;
Modified: trunk/Webdav/src/properties/getlastmodified.php
==============================================================================
--- trunk/Webdav/src/properties/getlastmodified.php [iso-8859-1] (original)
+++ trunk/Webdav/src/properties/getlastmodified.php [iso-8859-1] Wed Sep 26
09:01:30 2007
@@ -10,7 +10,7 @@
/**
* An object of this class represents the Webdav property <getlastmodified>.
*
- * @property DateTime $date
+ * @property ezcWebdavDateTime $date
* The last modification date.
*
* @version //autogenlastmodified//
@@ -21,10 +21,10 @@
/**
* Creates a new ezcWebdavGetLastModifiedProperty.
*
- * @param DateTime $date The date.
+ * @param ezcWebdavDateTime $date The date.
* @return void
*/
- public function __construct( DateTime $date = null )
+ public function __construct( ezcWebdavDateTime $date = null )
{
parent::__construct( 'getlastmodified' );
@@ -51,9 +51,9 @@
switch ( $propertyName )
{
case 'date':
- if ( ( $propertyValue instanceof DateTime ) === false &&
$propertyValue !== null )
+ if ( ( $propertyValue instanceof ezcWebdavDateTime ) === false
&& $propertyValue !== null )
{
- return $this->hasError( $propertyName, $propertyValue,
'DateTime' );
+ return $this->hasError( $propertyName, $propertyValue,
'ezcWebdavDateTime' );
}
$this->properties[$propertyName] = $propertyValue;
Modified: trunk/Webdav/src/properties/lockdiscovery_activelock.php
==============================================================================
--- trunk/Webdav/src/properties/lockdiscovery_activelock.php [iso-8859-1]
(original)
+++ trunk/Webdav/src/properties/lockdiscovery_activelock.php [iso-8859-1] Wed
Sep 26 09:01:30 2007
@@ -14,7 +14,7 @@
* Constant indicating 0, 1 or infinity.
* @property string $owner
* Owner of this lock (free form string). Null if not provided.
- * @property DateTime|null $timeout
+ * @property ezcWebdavDateTime|null $timeout
* Timeout date or null for inifinite. Null if not provided.
* @property array(string) $tokens
* Tokens submitted in <locktocken> (URIs). Null if not provided.
@@ -34,7 +34,7 @@
* @param int $lockScope Lock scope (constant
ezcWebdavLockRequest::SCOPE_*).
* @param int $depth Lock depth (constant
ezcWebdavRequest::DEPTH_*).
* @param string $owner
- * @param DateTime $timeout
+ * @param ezcWebdavDateTime $timeout
* @param array(string) $tokens
* @return void
*/
@@ -42,7 +42,7 @@
$lockScope =
ezcWebdavLockRequest::SCOPE_SHARED,
$depth =
ezcWebdavRequest::DEPTH_INFINITY,
$owner = null,
- DateTime $timeout = null,
+ ezcWebdavDateTime $timeout = null,
$tokens = array() )
{
parent::__construct( $lockType, $lockScope );
@@ -86,15 +86,15 @@
}
break;
case 'timeout':
- if ( ( $propertyValue instanceof DateTime ) === false &&
$propertyValue !== null )
+ if ( ( $propertyValue instanceof ezcWebdavDateTime ) === false
&& $propertyValue !== null )
{
- return $this->hasError( $propertyName, $propertyValue,
'DateTime' );
+ return $this->hasError( $propertyName, $propertyValue,
'ezcWebdavDateTime' );
}
break;
case 'timeout':
- if ( ( $propertyValue instanceof DateTime ) === false &&
$propertyValue !== null )
+ if ( ( $propertyValue instanceof ezcWebdavDateTime ) === false
&& $propertyValue !== null )
{
- return $this->hasError( $propertyName, $propertyValue,
'DateTime' );
+ return $this->hasError( $propertyName, $propertyValue,
'ezcWebdavDateTime' );
}
break;
case 'tokens':
Added: trunk/Webdav/src/tools/date_time.php
==============================================================================
--- trunk/Webdav/src/tools/date_time.php (added)
+++ trunk/Webdav/src/tools/date_time.php [iso-8859-1] Wed Sep 26 09:01:30 2007
@@ -1,0 +1,57 @@
+<?php
+/**
+ * File containing the ezcWebdavezcWebdavDateTime class.
+ *
+ * @package Webdav
+ * @version //autogentag//
+ * @copyright Copyright (C) 2005-2007 eZ systems as. All rights reserved.
+ * @license http://ez.no/licenses/new_bsd New BSD License
+ */
+
+/**
+ * This class extends the PHP internal ezcWebdavDateTime class to make it
serializable.
+ * This class is only needed for testing purposes and should be dropped ASAP,
+ * if its parents issue is fixed.
+ *
+ * @package Webdav
+ * @version //autogen//
+ * @copyright Copyright (C) 2005-2007 eZ systems as. All rights reserved.
+ * @license http://ez.no/licenses/new_bsd New BSD License;
+ *
+ * @todo Remove
+ */
+class ezcWebdavDateTime extends DateTime
+{
+ /**
+ * Stores the backup time in RFC 2822 format when being serialized.
+ *
+ * @var string
+ */
+ private $backupTime;
+
+ /**
+ * Backup the currently stored time.
+ * This methods backs up the time currently stored in the object as an RCF
+ * 2822 formatted string and returns the name of the stored property in an
+ * array to indicate that it should be serialized.
+ *
+ * @return array(string)
+ */
+ public function __sleep()
+ {
+ $this->backupTime = $this->format( 'r' );
+ return array( 'backupTime' );
+ }
+
+ /**
+ * Restores the backeuped time.
+ *
+ * @return void
+ */
+ public function __wakeup()
+ {
+ $this->__construct( $this->backupTime );
+ }
+}
+
+?>
Propchange: trunk/Webdav/src/tools/date_time.php
------------------------------------------------------------------------------
svn:eol-style = native
Modified: trunk/Webdav/src/transport.php
==============================================================================
--- trunk/Webdav/src/transport.php [iso-8859-1] (original)
+++ trunk/Webdav/src/transport.php [iso-8859-1] Wed Sep 26 09:01:30 2007
@@ -757,7 +757,7 @@
$property = new ezcWebdavCreationDateProperty();
if ( empty( $domElement->nodeValue ) === false )
{
- $property->date = new DateTime( $domElement->nodeValue );
+ $property->date = new ezcWebdavDateTime(
$domElement->nodeValue );
}
break;
case 'displayname':
@@ -804,7 +804,7 @@
$property = new ezcWebdavGetLastModifiedProperty();
if ( empty( $domElement->nodeValue ) === false )
{
- $property->date = new DateTime( $domElement->nodeValue );
+ $property->date = new ezcWebdavDateTime(
$domElement->nodeValue );
}
break;
case 'lockdiscovery':
@@ -911,7 +911,7 @@
break;
case 'timeout':
// @TODO Need to check for special values here!
- $activelock->timeout = new DateTime(
$currentElement->nodeValue );
+ $activelock->timeout = new ezcWebdavDateTime(
$currentElement->nodeValue );
break;
case 'locktoken':
for ( $i = 0; $i < $currentElement->childNodes->length;
++$i )
Modified: trunk/Webdav/src/webdav_autoload.php
==============================================================================
--- trunk/Webdav/src/webdav_autoload.php [iso-8859-1] (original)
+++ trunk/Webdav/src/webdav_autoload.php [iso-8859-1] Wed Sep 26 09:01:30 2007
@@ -40,6 +40,7 @@
'ezcWebdavCollection' =>
'Webdav/structs/collection.php',
'ezcWebdavCopyRequest' => 'Webdav/request/copy.php',
'ezcWebdavCreationDateProperty' =>
'Webdav/properties/creationdate.php',
+ 'ezcWebdavDateTime' => 'Webdav/tools/date_time.php',
'ezcWebdavDeadProperty' => 'Webdav/properties/dead.php',
'ezcWebdavDeleteRequest' => 'Webdav/request/delete.php',
'ezcWebdavDeleteResponse' => 'Webdav/response/delete.php',
Modified: trunk/Webdav/tests/backend_file_test.php
==============================================================================
--- trunk/Webdav/tests/backend_file_test.php [iso-8859-1] (original)
+++ trunk/Webdav/tests/backend_file_test.php [iso-8859-1] Wed Sep 26 09:01:30
2007
@@ -1491,7 +1491,7 @@
new ezcWebdavGetContentLengthProperty( '22' )
);
$propertyStorage->attach(
- new ezcWebdavGetLastModifiedProperty( new DateTime( '@1124118780'
) )
+ new ezcWebdavGetLastModifiedProperty( new ezcWebdavDateTime(
'@1124118780' ) )
);
$expectedResponse = new ezcWebdavMultistatusResponse(
@@ -1525,7 +1525,7 @@
$propertyStorageC = new ezcWebdavPropertyStorage();
$propertyStorageC->attach(
- new ezcWebdavCreationDateProperty( new DateTime( '@1054034820' ) )
+ new ezcWebdavCreationDateProperty( new ezcWebdavDateTime(
'@1054034820' ) )
);
$propertyStorageC->attach(
new ezcWebdavDisplayNameProperty( 'bar' )
@@ -1540,7 +1540,7 @@
new ezcWebdavGetEtagProperty( md5( '/collection' ) )
);
$propertyStorageC->attach(
- new ezcWebdavGetLastModifiedProperty( new DateTime( '@1124118780'
) )
+ new ezcWebdavGetLastModifiedProperty( new ezcWebdavDateTime(
'@1124118780' ) )
);
$propertyStorageC->attach(
new ezcWebdavGetContentLengthProperty(
ezcWebdavGetContentLengthProperty::COLLECTION )
@@ -1548,7 +1548,7 @@
$propertyStorageR = new ezcWebdavPropertyStorage();
$propertyStorageR->attach(
- new ezcWebdavCreationDateProperty( new DateTime( '@1054034820' ) )
+ new ezcWebdavCreationDateProperty( new ezcWebdavDateTime(
'@1054034820' ) )
);
$propertyStorageR->attach(
new ezcWebdavDisplayNameProperty( 'blubb' )
@@ -1563,7 +1563,7 @@
new ezcWebdavGetEtagProperty( md5( '/bar/blubb' ) )
);
$propertyStorageR->attach(
- new ezcWebdavGetLastModifiedProperty( new DateTime( '@1124118780'
) )
+ new ezcWebdavGetLastModifiedProperty( new ezcWebdavDateTime(
'@1124118780' ) )
);
$propertyStorageR->attach(
new ezcWebdavGetContentLengthProperty( '19' )
Modified: trunk/Webdav/tests/backend_memory_test.php
==============================================================================
--- trunk/Webdav/tests/backend_memory_test.php [iso-8859-1] (original)
+++ trunk/Webdav/tests/backend_memory_test.php [iso-8859-1] Wed Sep 26 09:01:30
2007
@@ -137,7 +137,7 @@
// Expected properties
$propertyStorage = new ezcWebdavPropertyStorage();
$propertyStorage->attach(
- new ezcWebdavCreationDateProperty( new DateTime( '@1054034820' ) )
+ new ezcWebdavCreationDateProperty( new ezcWebdavDateTime(
'@1054034820' ) )
);
$propertyStorage->attach(
new ezcWebdavDisplayNameProperty( 'foo' )
@@ -152,7 +152,7 @@
new ezcWebdavGetEtagProperty( md5( '/foo' ) )
);
$propertyStorage->attach(
- new ezcWebdavGetLastModifiedProperty( new DateTime( '@1124118780'
) )
+ new ezcWebdavGetLastModifiedProperty( new ezcWebdavDateTime(
'@1124118780' ) )
);
$propertyStorage->attach(
new ezcWebdavGetContentLengthProperty( '3' )
@@ -251,7 +251,7 @@
// Expected properties
$propertyStorage = new ezcWebdavPropertyStorage();
$propertyStorage->attach(
- new ezcWebdavCreationDateProperty( new DateTime( '@1054034820' ) )
+ new ezcWebdavCreationDateProperty( new ezcWebdavDateTime(
'@1054034820' ) )
);
$propertyStorage->attach(
new ezcWebdavDisplayNameProperty( 'foo' )
@@ -266,7 +266,7 @@
new ezcWebdavGetEtagProperty( md5( '/foo' ) )
);
$propertyStorage->attach(
- new ezcWebdavGetLastModifiedProperty( new DateTime( '@1124118780'
) )
+ new ezcWebdavGetLastModifiedProperty( new ezcWebdavDateTime(
'@1124118780' ) )
);
$propertyStorage->attach(
new ezcWebdavGetContentLengthProperty( '3' )
@@ -454,7 +454,7 @@
// Expected properties
$propertyStorage = new ezcWebdavPropertyStorage();
$propertyStorage->attach(
- new ezcWebdavCreationDateProperty( new DateTime( '@1054034820' ) )
+ new ezcWebdavCreationDateProperty( new ezcWebdavDateTime(
'@1054034820' ) )
);
$propertyStorage->attach(
new ezcWebdavDisplayNameProperty( 'foo' )
@@ -469,7 +469,7 @@
new ezcWebdavGetEtagProperty( md5( '/foo' ) )
);
$propertyStorage->attach(
- new ezcWebdavGetLastModifiedProperty( new DateTime( '@1124118780'
) )
+ new ezcWebdavGetLastModifiedProperty( new ezcWebdavDateTime(
'@1124118780' ) )
);
$propertyStorage->attach(
new ezcWebdavGetContentLengthProperty( '3' )
@@ -1729,7 +1729,7 @@
$response = $backend->propfind( $request );
$prop200 = new ezcWebdavPropertyStorage();
- $prop1->date = new DateTime( '@1124118780' );
+ $prop1->date = new ezcWebdavDateTime( '@1124118780' );
$prop200->attach( $prop1 );
$prop2->length = '3';
$prop200->attach( $prop2 );
@@ -1792,7 +1792,7 @@
$prop200c = new ezcWebdavPropertyStorage();
$prop1c = clone $prop1;
- $prop1c->date = new DateTime( '@1124118780' );
+ $prop1c->date = new ezcWebdavDateTime( '@1124118780' );
$prop200c->attach( $prop1c );
$prop2c = clone $prop2;
$prop2c->length = '4096';
@@ -1803,7 +1803,7 @@
$prop200r = new ezcWebdavPropertyStorage();
$prop1r = clone $prop1;
- $prop1r->date = new DateTime( '@1124118780' );
+ $prop1r->date = new ezcWebdavDateTime( '@1124118780' );
$prop200r->attach( $prop1r );
$prop2r = clone $prop2;
$prop2r->length = '19';
@@ -2255,7 +2255,7 @@
$propertyStorage = new ezcWebdavPropertyStorage();
$propertyStorage->attach(
- new ezcWebdavCreationDateProperty( new DateTime( '@1054034820' ) )
+ new ezcWebdavCreationDateProperty( new ezcWebdavDateTime(
'@1054034820' ) )
);
$propertyStorage->attach(
new ezcWebdavDisplayNameProperty( 'foo' )
@@ -2270,7 +2270,7 @@
new ezcWebdavGetEtagProperty( md5( '/foo' ) )
);
$propertyStorage->attach(
- new ezcWebdavGetLastModifiedProperty( new DateTime( '@1124118780'
) )
+ new ezcWebdavGetLastModifiedProperty( new ezcWebdavDateTime(
'@1124118780' ) )
);
$propertyStorage->attach(
new ezcWebdavGetContentLengthProperty( '3' )
@@ -2319,7 +2319,7 @@
$propertyStorageC = new ezcWebdavPropertyStorage();
$propertyStorageC->attach(
- new ezcWebdavCreationDateProperty( new DateTime( '@1054034820' ) )
+ new ezcWebdavCreationDateProperty( new ezcWebdavDateTime(
'@1054034820' ) )
);
$propertyStorageC->attach(
new ezcWebdavDisplayNameProperty( 'bar' )
@@ -2334,7 +2334,7 @@
new ezcWebdavGetEtagProperty( md5( '/bar' ) )
);
$propertyStorageC->attach(
- new ezcWebdavGetLastModifiedProperty( new DateTime( '@1124118780'
) )
+ new ezcWebdavGetLastModifiedProperty( new ezcWebdavDateTime(
'@1124118780' ) )
);
$propertyStorageC->attach(
new ezcWebdavGetContentLengthProperty(
ezcWebdavGetContentLengthProperty::COLLECTION )
@@ -2347,7 +2347,7 @@
$propertyStorageR = new ezcWebdavPropertyStorage();
$propertyStorageR->attach(
- new ezcWebdavCreationDateProperty( new DateTime( '@1054034820' ) )
+ new ezcWebdavCreationDateProperty( new ezcWebdavDateTime(
'@1054034820' ) )
);
$propertyStorageR->attach(
new ezcWebdavDisplayNameProperty( 'blubb' )
@@ -2362,7 +2362,7 @@
new ezcWebdavGetEtagProperty( md5( '/bar/blubb' ) )
);
$propertyStorageR->attach(
- new ezcWebdavGetLastModifiedProperty( new DateTime( '@1124118780'
) )
+ new ezcWebdavGetLastModifiedProperty( new ezcWebdavDateTime(
'@1124118780' ) )
);
$propertyStorageR->attach(
new ezcWebdavGetContentLengthProperty( '19' )
@@ -2746,7 +2746,7 @@
$checkProperties = new ezcWebdavPropertyStorage();
$checkProperties->attach(
- $p_last = new ezcWebdavGetLastModifiedProperty( new DateTime(
'@1124118780' ) )
+ $p_last = new ezcWebdavGetLastModifiedProperty( new
ezcWebdavDateTime( '@1124118780' ) )
);
$checkProperties->attach(
$p_length = new ezcWebdavGetContentLengthProperty( '3' )
Modified: trunk/Webdav/tests/client_test_cadaver_backend.php
==============================================================================
--- trunk/Webdav/tests/client_test_cadaver_backend.php [iso-8859-1] (original)
+++ trunk/Webdav/tests/client_test_cadaver_backend.php [iso-8859-1] Wed Sep 26
09:01:30 2007
@@ -57,7 +57,7 @@
$test->backend->setProperty(
'/container',
new ezcWebdavCreationDateProperty(
- new DateTime( '1997-12-01T17:42:21-08:00' )
+ new ezcWebdavDateTime( '1997-12-01T17:42:21-08:00' )
)
);
$test->backend->setProperty(
@@ -104,7 +104,7 @@
$test->backend->setProperty(
'/container/front.html',
new ezcWebdavCreationDateProperty(
- new DateTime( '1997-12-01T18:27:21-08:00' )
+ new ezcWebdavDateTime( '1997-12-01T18:27:21-08:00' )
)
);
$test->backend->setProperty(
@@ -134,7 +134,7 @@
$test->backend->setProperty(
'/container/front.html',
new ezcWebdavGetLastModifiedProperty(
- new DateTime( 'Monday, 12-Jan-98 09:25:56 GMT' )
+ new ezcWebdavDateTime( 'Monday, 12-Jan-98 09:25:56 GMT' )
)
);
$test->backend->setProperty(
Modified: trunk/Webdav/tests/client_test_litmus_backend.php
==============================================================================
--- trunk/Webdav/tests/client_test_litmus_backend.php [iso-8859-1] (original)
+++ trunk/Webdav/tests/client_test_litmus_backend.php [iso-8859-1] Wed Sep 26
09:01:30 2007
@@ -43,7 +43,7 @@
$backend->setProperty(
'/test_collection',
new ezcWebdavGetLastModifiedProperty(
- new DateTime()
+ new ezcWebdavDateTime()
)
);
Modified: trunk/Webdav/tests/client_test_rfc_backend.php
==============================================================================
--- trunk/Webdav/tests/client_test_rfc_backend.php [iso-8859-1] (original)
+++ trunk/Webdav/tests/client_test_rfc_backend.php [iso-8859-1] Wed Sep 26
09:01:30 2007
@@ -86,7 +86,7 @@
$test->backend->setProperty(
'/container',
new ezcWebdavCreationDateProperty(
- new DateTime( '1997-12-01T17:42:21-08:00' )
+ new ezcWebdavDateTime( '1997-12-01T17:42:21-08:00' )
)
);
$test->backend->setProperty(
@@ -133,7 +133,7 @@
$test->backend->setProperty(
'/container/front.html',
new ezcWebdavCreationDateProperty(
- new DateTime( '1997-12-01T18:27:21-08:00' )
+ new ezcWebdavDateTime( '1997-12-01T18:27:21-08:00' )
)
);
$test->backend->setProperty(
@@ -163,7 +163,7 @@
$test->backend->setProperty(
'/container/front.html',
new ezcWebdavGetLastModifiedProperty(
- new DateTime( 'Monday, 12-Jan-98 09:25:56 GMT' )
+ new ezcWebdavDateTime( 'Monday, 12-Jan-98 09:25:56 GMT' )
)
);
$test->backend->setProperty(
@@ -305,7 +305,7 @@
$test->backend->setProperty(
'/container',
new ezcWebdavCreationDateProperty(
- new DateTime( '1997-12-01T17:42:21-08:00' )
+ new ezcWebdavDateTime( '1997-12-01T17:42:21-08:00' )
)
);
$test->backend->setProperty(
@@ -352,7 +352,7 @@
$test->backend->setProperty(
'/container/front.html',
new ezcWebdavCreationDateProperty(
- new DateTime( '1997-12-01T18:27:21-08:00' )
+ new ezcWebdavDateTime( '1997-12-01T18:27:21-08:00' )
)
);
$test->backend->setProperty(
@@ -382,7 +382,7 @@
$test->backend->setProperty(
'/container/front.html',
new ezcWebdavGetLastModifiedProperty(
- new DateTime( 'Monday, 12-Jan-98 09:25:56 GMT' )
+ new ezcWebdavDateTime( 'Monday, 12-Jan-98 09:25:56 GMT' )
)
);
$test->backend->setProperty(
@@ -455,7 +455,7 @@
$test->backend->setProperty(
'/container',
new ezcWebdavCreationDateProperty(
- new DateTime( '1997-12-01T17:42:21-08:00' )
+ new ezcWebdavDateTime( '1997-12-01T17:42:21-08:00' )
)
);
$test->backend->setProperty(
@@ -502,7 +502,7 @@
$test->backend->setProperty(
'/container/front.html',
new ezcWebdavCreationDateProperty(
- new DateTime( '1997-12-01T18:27:21-08:00' )
+ new ezcWebdavDateTime( '1997-12-01T18:27:21-08:00' )
)
);
$test->backend->setProperty(
@@ -532,7 +532,7 @@
$test->backend->setProperty(
'/container/front.html',
new ezcWebdavGetLastModifiedProperty(
- new DateTime( 'Monday, 12-Jan-98 09:25:56 GMT' )
+ new ezcWebdavDateTime( 'Monday, 12-Jan-98 09:25:56 GMT' )
)
);
$test->backend->setProperty(
Modified:
trunk/Webdav/tests/clients/litmus/114_props__4_propfind_d0/response/body.xml
==============================================================================
---
trunk/Webdav/tests/clients/litmus/114_props__4_propfind_d0/response/body.xml
[iso-8859-1] (original)
+++
trunk/Webdav/tests/clients/litmus/114_props__4_propfind_d0/response/body.xml
[iso-8859-1] Wed Sep 26 09:01:30 2007
@@ -1,7 +1,3 @@
-<br />
-<b>Warning</b>: Cannot modify header information - headers already sent by
(output started at
/home/dotxp/dev/ez/ezcomponents/trunk/Webdav/src/transport.php:1502) in
<b>/home/dotxp/dev/ez/ezcomponents/trunk/Webdav/src/transport.php</b> on line
<b>1142</b><br />
-<br />
-<b>Warning</b>: Cannot modify header information - headers already sent by
(output started at
/home/dotxp/dev/ez/ezcomponents/trunk/Webdav/src/transport.php:1502) in
<b>/home/dotxp/dev/ez/ezcomponents/trunk/Webdav/src/transport.php</b> on line
<b>1148</b><br />
<?xml version="1.0" encoding="UTF-8"?>
<D:multistatus xmlns:D="DAV:">
<D:repsonse xmlns:default="http://webdav.org/neon/litmus/">
@@ -9,7 +5,7 @@
<D:propstat>
<D:prop>
<D:displayname>litmus</D:displayname>
- <D:getlastmodified></D:getlastmodified>
+ <D:getlastmodified>Mon, 15 Aug 2005 15:13:00 +0100</D:getlastmodified>
<D:getcontentlength>4096</D:getcontentlength>
<D:resourcetype>
<D:collection/>
Modified: trunk/Webdav/tests/property_creationdate_test.php
==============================================================================
--- trunk/Webdav/tests/property_creationdate_test.php [iso-8859-1] (original)
+++ trunk/Webdav/tests/property_creationdate_test.php [iso-8859-1] Wed Sep 26
09:01:30 2007
@@ -19,7 +19,7 @@
$this->workingValues = array(
'date' => array(
null,
- new DateTime( "+3 hours" ),
+ new ezcWebdavDateTime( "+3 hours" ),
),
);
$this->failingValues = array(
Modified: trunk/Webdav/tests/property_getlastmodified_test.php
==============================================================================
--- trunk/Webdav/tests/property_getlastmodified_test.php [iso-8859-1] (original)
+++ trunk/Webdav/tests/property_getlastmodified_test.php [iso-8859-1] Wed Sep
26 09:01:30 2007
@@ -19,7 +19,7 @@
$this->workingValues = array(
'date' => array(
null,
- new DateTime( "+3 hours" ),
+ new ezcWebdavDateTime( "+3 hours" ),
),
);
$this->failingValues = array(
Modified: trunk/Webdav/tests/property_lockdiscovery_activelock_test.php
==============================================================================
--- trunk/Webdav/tests/property_lockdiscovery_activelock_test.php [iso-8859-1]
(original)
+++ trunk/Webdav/tests/property_lockdiscovery_activelock_test.php [iso-8859-1]
Wed Sep 26 09:01:30 2007
@@ -42,7 +42,7 @@
),
'timeout' => array(
null,
- new DateTime( '+3 hours' ),
+ new ezcWebdavDateTime( '+3 hours' ),
),
'tokens' => array(
array(),
--
svn-components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/svn-components