Page MenuHomePhabricator

D8437.diff
No OneTemporary

D8437.diff

Index: src/lint/linter/__tests__/xhpast/php54.lint-test
===================================================================
--- src/lint/linter/__tests__/xhpast/php54.lint-test
+++ src/lint/linter/__tests__/xhpast/php54.lint-test
@@ -1,7 +1,10 @@
<?php
f()[0];
-$o->m()[0];
+ m()[0];
+
+// The check above should be this, see T4334.
+// $o->m()[0];
~~~~~~~~~~
disabled:3:5
Index: src/unit/engine/__tests__/XUnitTestResultParserTestCase.php
===================================================================
--- src/unit/engine/__tests__/XUnitTestResultParserTestCase.php
+++ src/unit/engine/__tests__/XUnitTestResultParserTestCase.php
@@ -37,6 +37,8 @@
} catch (Exception $e) {
// OK
}
+
+ $this->assertEqual(true, true);
}
public function testInvalidXmlInputFailure() {
@@ -50,6 +52,8 @@
} catch (Exception $e) {
// OK
}
+
+ $this->assertEqual(true, true);
}
}
Index: src/unit/engine/phutil/ArcanistPhutilTestCase.php
===================================================================
--- src/unit/engine/phutil/ArcanistPhutilTestCase.php
+++ src/unit/engine/phutil/ArcanistPhutilTestCase.php
@@ -464,6 +464,14 @@
$exceptions);
}
}
+
+ if (!$this->assertions) {
+ $this->failTest(
+ pht(
+ 'This test case made no assertions. Test cases must make at '.
+ 'least one assertion.'));
+ }
+
} catch (ArcanistPhutilTestTerminatedException $ex) {
// Continue with the next test.
} catch (ArcanistPhutilTestSkippedException $ex) {

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 10, 8:14 PM (2 d, 3 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6735735
Default Alt Text
D8437.diff (1 KB)

Event Timeline