Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F104158144
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
Thu, Mar 6, 20:52
Size
494 B
Mime Type
text/x-php
Expires
Sat, Mar 8, 20:52 (1 d, 20 h)
Engine
blob
Format
Raw Data
Handle
24645901
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