Page MenuHomePhabricator

D11516.diff
No OneTemporary

D11516.diff

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

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)

Event Timeline