コード例 #1
0
ファイル: property_storage_test.php プロジェクト: bmdevel/ezc
 public function testPropertyStorageIntersection()
 {
     $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);
     $intersection = $storage1->intersect($storage2);
     $this->assertEquals(array('http://example.com/foo/bar' => array('foobar' => $deadProp)), $intersection->getAllProperties());
 }