mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-09 01:48:48 +00:00
Second part of refactoring; should be runnable again, yet not thoroughly tested
This commit is contained in:
parent
b8234a1cb8
commit
6186153f68
88 changed files with 2135 additions and 1186 deletions
|
@ -1,30 +0,0 @@
|
|||
<?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