public function testPropertyStorageDiff() { $liveProp = new ezcWebdavGetContentLengthProperty(); $deadProp = new ezcWebdavDeadProperty('http://example.com/foo/bar', 'foobar', 'some... content'); $deadProp2 = new ezcWebdavDeadProperty('http://example.com/foo/bar', 'blubb', 'some... content'); $storage1 = new ezcWebdavBasicPropertyStorage(); $storage1->attach($liveProp); $storage1->attach($deadProp); $storage2 = new ezcWebdavBasicPropertyStorage(); $storage2->attach($deadProp); $storage2->attach($deadProp2); $diff = $storage1->diff($storage2); $this->assertEquals(array('DAV:' => array('getcontentlength' => $liveProp)), $diff->getAllProperties()); }