Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2890894
ArcanistCommentRemoverTestCase.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
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
Sun, Jan 19, 14:18 (3 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1116445
Default Alt Text
ArcanistCommentRemoverTestCase.php (650 B)
Attached To
Mode
rARC Arcanist
Attached
Detach File
Event Timeline
Log In to Comment