Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13968060
D16875.id40629.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D16875.id40629.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D16875: Ensure that `PHUIInvisibleCharacterTestCase` is compatible with PHP 5.3
Attached
Detach File
Event Timeline
Log In to Comment