Page Menu
Home
GnuPG
Search
Configure Global Search
Log In
Files
F32914190
PhabricatorAphrontViewTestCase.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Size
494 B
Subscribers
None
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
());
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, Nov 17, 9:25 PM (18 h, 10 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
d4/b7/f64bf9b18f80be6be43a0a0d6169
Attached To
rPHAB Phabricator
Event Timeline
Log In to Comment