Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F98559740
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
Tue, Jan 14, 08:23
Size
494 B
Mime Type
text/x-php
Expires
Thu, Jan 16, 08:23 (1 d, 13 h)
Engine
blob
Format
Raw Data
Handle
23604088
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