Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F22390676
ArcanistCommentRemoverTestCase.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
650 B
Referenced Files
None
Subscribers
None
ArcanistCommentRemoverTestCase.php
View Options
<?php
final
class
ArcanistCommentRemoverTestCase
extends
PhutilTestCase
{
public
function
testRemover
()
{
$test
=
<<<EOTEXT
Here is a list:
# Stuff
# More Stuff
The end.
# Instructional comments.
# Appear here.
# At the bottom.
EOTEXT;
$expect
=
<<<EOTEXT
Here is a list:
# Stuff
# More Stuff
The end.
EOTEXT;
$this
->
assertEqual
(
$expect
,
ArcanistCommentRemover
::
removeComments
(
$test
));
$test
=
<<<EOTEXT
Subscribers:
#projectname
# Instructional comments.
EOTEXT;
$expect
=
<<<EOTEXT
Subscribers:
#projectname
EOTEXT;
$this
->
assertEqual
(
$expect
,
ArcanistCommentRemover
::
removeComments
(
$test
));
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Nov 27, 15:31 (1 d, 9 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1228970
Default Alt Text
ArcanistCommentRemoverTestCase.php (650 B)
Attached To
Mode
R118 Arcanist - fork
Attached
Detach File
Event Timeline