Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96616102
PhabricatorAphrontViewTestCase.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Dec 28, 23:27
Size
494 B
Mime Type
text/x-php
Expires
Mon, Dec 30, 23:27 (1 d, 7 h)
Engine
blob
Format
Raw Data
Handle
23198487
Attached To
rPH Phabricator
PhabricatorAphrontViewTestCase.php
View Options
<?php
final
class
PhabricatorAphrontViewTestCase
extends
PhabricatorTestCase
{
public
function
testHasChildren
()
{
$view
=
new
AphrontNullView
();
$this
->
assertFalse
(
$view
->
hasChildren
());
$values
=
array
(
null
,
''
,
array
(),
array
(
null
,
''
),
);
foreach
(
$values
as
$value
)
{
$view
->
appendChild
(
$value
);
$this
->
assertFalse
(
$view
->
hasChildren
());
}
$view
->
appendChild
(
'!'
);
$this
->
assertTrue
(
$view
->
hasChildren
());
}
}
Event Timeline
Log In to Comment