Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2893311
PhabricatorAphrontViewTestCase.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
494 B
Referenced Files
None
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
Sun, Jan 19, 18:12 (1 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1127312
Default Alt Text
PhabricatorAphrontViewTestCase.php (494 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment