Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F1428899
PhutilSafeHTMLTestCase.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
498 B
Referenced Files
None
Subscribers
None
PhutilSafeHTMLTestCase.php
View Options
<?php
final
class
PhutilSafeHTMLTestCase
extends
PhutilTestCase
{
public
function
testOperator
()
{
if
(!
extension_loaded
(
'operator'
))
{
$this
->
assertSkipped
(
pht
(
'Operator extension not available.'
));
}
$a
=
phutil_tag
(
'a'
);
$ab
=
$a
.
phutil_tag
(
'b'
);
$this
->
assertEqual
(
'<a></a><b></b>'
,
$ab
->
getHTMLContent
());
$this
->
assertEqual
(
'<a></a>'
,
$a
->
getHTMLContent
());
$a
.=
phutil_tag
(
'a'
);
$this
->
assertEqual
(
'<a></a><a></a>'
,
$a
->
getHTMLContent
());
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Jul 8, 11:05 PM (1 d, 23 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
320409
Default Alt Text
PhutilSafeHTMLTestCase.php (498 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment