Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96613160
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, 22:10
Size
494 B
Mime Type
text/x-php
Expires
Mon, Dec 30, 22:10 (2 d)
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