Page MenuHomePhabricator

D16875.id40629.diff
No OneTemporary

D16875.id40629.diff

diff --git a/src/view/phui/__tests__/PHUIInvisibleCharacterTestCase.php b/src/view/phui/__tests__/PHUIInvisibleCharacterTestCase.php
--- a/src/view/phui/__tests__/PHUIInvisibleCharacterTestCase.php
+++ b/src/view/phui/__tests__/PHUIInvisibleCharacterTestCase.php
@@ -9,7 +9,7 @@
}
public function testEmptyPlainText() {
- $view = (new PHUIInvisibleCharacterView(''))
+ $view = id(new PHUIInvisibleCharacterView(''))
->setPlainText(true);
$res = $view->render();
$this->assertEqual($res, '');
@@ -17,7 +17,7 @@
public function testWithNamedChars() {
$test_input = "\x00\n\t ";
- $view = (new PHUIInvisibleCharacterView($test_input))
+ $view = id(new PHUIInvisibleCharacterView($test_input))
->setPlainText(true);
$res = $view->render();
$this->assertEqual($res, '<NULL><NEWLINE><TAB><SPACE>');
@@ -25,7 +25,7 @@
public function testWithHexChars() {
$test_input = "abc\x01";
- $view = (new PHUIInvisibleCharacterView($test_input))
+ $view = id(new PHUIInvisibleCharacterView($test_input))
->setPlainText(true);
$res = $view->render();
$this->assertEqual($res, 'abc<0x01>');
@@ -33,7 +33,7 @@
public function testWithNamedAsHex() {
$test_input = "\x00\x0a\x09\x20";
- $view = (new PHUIInvisibleCharacterView($test_input))
+ $view = id(new PHUIInvisibleCharacterView($test_input))
->setPlainText(true);
$res = $view->render();
$this->assertEqual($res, '<NULL><NEWLINE><TAB><SPACE>');

File Metadata

Mime Type
text/plain
Expires
Oct 17 2024, 6:18 PM (4 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6712694
Default Alt Text
D16875.id40629.diff (1 KB)

Event Timeline