Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15203372
D11516.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
730 B
Referenced Files
None
Subscribers
None
D11516.diff
View Options
diff --git a/src/parser/xhpast/__tests__/PHPASTParserTestCase.php b/src/parser/xhpast/__tests__/PHPASTParserTestCase.php
--- a/src/parser/xhpast/__tests__/PHPASTParserTestCase.php
+++ b/src/parser/xhpast/__tests__/PHPASTParserTestCase.php
@@ -3,8 +3,12 @@
final class PHPASTParserTestCase extends PhutilTestCase {
public function testParser() {
- if (!xhpast_is_available()) {
- $this->assertSkipped(pht('xhpast is not built or not up to date.'));
+ if (!PhutilXHPASTBinary::isAvailable()) {
+ try {
+ PhutilXHPASTBinary::build();
+ } catch (Exception $ex) {
+ $this->assertSkipped(pht('xhpast is not built or not up to date.'));
+ }
}
$dir = dirname(__FILE__).'/data/';
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Feb 25, 12:49 AM (12 m, 55 s)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7191402
Default Alt Text
D11516.diff (730 B)
Attached To
Mode
D11516: Attempt to build XHPAST during unit tests
Attached
Detach File
Event Timeline
Log In to Comment