mirror of
https://we.phorge.it/source/phorge.git
synced 2025-02-03 18:38:27 +01:00
f9b3e3360b
Summary: Ref T13395. Move cache classes, syntax highlighters, other markup classes, and sprite sheets to Phabricator. Test Plan: Attempted to find any callers for any of this stuff in libphutil or Arcanist and couldn't. Maniphest Tasks: T13395 Differential Revision: https://secure.phabricator.com/D20977
19 lines
498 B
PHP
19 lines
498 B
PHP
<?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());
|
|
}
|
|
|
|
}
|