Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14033806
D8437.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
D8437.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D8437: Fail Arcanist tests when they make zero assertions
Attached
Detach File
Event Timeline
Log In to Comment