Skip to content

Commit

Permalink
Add composer-in-php7-mode to HHVM test suite
Browse files Browse the repository at this point in the history
Summary:
99.09% pass, a few more symfony-passing-things-that-aren't-strings problems
similar to the SplFileInfo/dirname one though.

refs #7869

Depends on D5196198

Reviewed By: mofarrell

Differential Revision: D5202473

fbshipit-source-id: e4e266c68075c83588771442f3aa7904d308d00b
  • Loading branch information
fredemmott authored and mofarrell committed Jun 8, 2017
1 parent 621e040 commit 733351f
Show file tree
Hide file tree
Showing 4 changed files with 2,112 additions and 0 deletions.
10 changes: 10 additions & 0 deletions hphp/test/frameworks/framework_class_overrides/Composer_PHP7.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?hh
require_once __DIR__.'/../Framework.php';

class Composer_PHP7 extends Framework {
public function __construct(string $name) {
$tc = get_runtime_build().' -c '.__DIR__.'/../php7.ini'.
' vendor/bin/phpunit';
parent::__construct($name, $tc);
}
}
9 changes: 9 additions & 0 deletions hphp/test/frameworks/frameworks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,15 @@
flakey:
# Depends on internet connection to example.com
- composer/tests/Composer/Test/Util/RemoteFilesystemTest.php
composer_php7:
url: https://github.com/composer/composer.git
branch: 1.4.2
commit: 489e09ee6c3ba431fbeeef9147afdaeb6f91b647
install_root: composer_php7
test_root: composer_php7
flakey:
# Depends on internet connection to example.com
- composer_php7/tests/Composer/Test/Util/RemoteFilesystemTest.php
doctrine2:
url: https://github.com/doctrine/doctrine2.git
# Stable is 2.4.4, but need master since we have pull requests.
Expand Down
23 changes: 23 additions & 0 deletions hphp/test/frameworks/php7.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[date]
date.timezone = America/Los_Angeles

[php]
error_reporting = E_ALL & ~E_NOTICE

[hhvm]
hhvm.jit = false
hhvm.jit_a_size = 10485760
hhvm.jit_a_cold_size = 4194304
hhvm.jit_a_frozen_size = 6291456
hhvm.jit_global_data_size = 2097152
hhvm.enable_zend_compat = true
hhvm.mysql.read_timeout = 5000
hhvm.error_handling.notice_frequency = 1
hhvm.error_handling.warning_frequency = 1
hhvm.http.slow_query_threshold = 0
hhvm.resource_limit.serialization_size_limit = 134217728
hhvm.libxml.ext_entity_whitelist = "file"
hhvm.php7.all=1
; We run the typechecker in our CI systems anyway; running it usually isn't
; a good idea if you have a full framework_downloads/ directory.
hhvm.hack.lang.auto_typecheck = 0
Loading

0 comments on commit 733351f

Please sign in to comment.