mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-08 17:38:49 +00:00
Initial Release of the calendar plugin
This commit is contained in:
parent
45cc9885fc
commit
7115197a33
561 changed files with 189494 additions and 0 deletions
30
dav/SabreDAV/tests/Sabre/VObject/ElementListTest.php
Normal file
30
dav/SabreDAV/tests/Sabre/VObject/ElementListTest.php
Normal file
|
@ -0,0 +1,30 @@
|
|||
<?php
|
||||
|
||||
class Sabre_VObject_ElementListTest extends PHPUnit_Framework_TestCase {
|
||||
|
||||
function testIterate() {
|
||||
|
||||
$sub = new Sabre_VObject_Component('VEVENT');
|
||||
|
||||
$elems = array(
|
||||
$sub,
|
||||
clone $sub,
|
||||
clone $sub
|
||||
);
|
||||
|
||||
$elemList = new Sabre_VObject_ElementList($elems);
|
||||
|
||||
$count = 0;
|
||||
foreach($elemList as $key=>$subcomponent) {
|
||||
|
||||
$count++;
|
||||
$this->assertInstanceOf('Sabre_VObject_Component',$subcomponent);
|
||||
|
||||
}
|
||||
$this->assertEquals(3,$count);
|
||||
$this->assertEquals(2,$key);
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue