Page MenuHomePhorge

ArcanistCommentRemoverTestCase.php
No OneTemporary

ArcanistCommentRemoverTestCase.php

<?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

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)

Event Timeline