Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F1820940
ElementListTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Size
633 B
Subscribers
None
ElementListTest.php
View Options
<?php
namespace
Sabre\VObject
;
class
ElementListTest
extends
\PHPUnit_Framework_TestCase
{
function
testIterate
()
{
$cal
=
new
Component\VCalendar
();
$sub
=
$cal
->
createComponent
(
'VEVENT'
);
$elems
=
array
(
$sub
,
clone
$sub
,
clone
$sub
);
$elemList
=
new
ElementList
(
$elems
);
$count
=
0
;
foreach
(
$elemList
as
$key
=>
$subcomponent
)
{
$count
++;
$this
->
assertInstanceOf
(
'Sabre
\\
VObject
\\
Component'
,
$subcomponent
);
}
$this
->
assertEquals
(
3
,
$count
);
$this
->
assertEquals
(
2
,
$key
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Dec 22, 10:12 PM (2 d, 21 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
915726
Default Alt Text
ElementListTest.php (633 B)
Attached To
rDAVCAL DokuWiki DAVCal PlugIn
Event Timeline
Log In to Comment