Differential D21429 Diff 50990 src/applications/differential/parser/__tests__/DifferentialTabReplacementTestCase.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/parser/__tests__/DifferentialTabReplacementTestCase.php
| <?php | <?php | ||||
| final class DifferentialTabReplacementTestCase | final class DifferentialTabReplacementTestCase | ||||
| extends PhabricatorTestCase { | extends PhabricatorTestCase { | ||||
| public function testTabReplacement() { | public function testTabReplacement() { | ||||
| $tab1 = "<span data-copy-text=\"\t\" class=\"logical-tab\"> </span>"; | $tab1 = "<span data-copy-text=\"\t\"> </span>"; | ||||
| $tab2 = "<span data-copy-text=\"\t\" class=\"logical-tab\"> </span>"; | $tab2 = "<span data-copy-text=\"\t\"> </span>"; | ||||
| $cat = "\xF0\x9F\x90\xB1"; | $cat = "\xF0\x9F\x90\xB1"; | ||||
| $cases = array( | $cases = array( | ||||
| '' => '', | '' => '', | ||||
| 'x' => 'x', | 'x' => 'x', | ||||
| // Tabs inside HTML tags should not be replaced. | // Tabs inside HTML tags should not be replaced. | ||||
| Show All 40 Lines | |||||