This commit is contained in:
Dan Poltawski 2016-09-12 11:36:18 +01:00
commit 3e6ac53831

View File

@ -624,6 +624,11 @@ class behat_config_util {
*/
public function profile_guided_allocate($features, $nbuckets, $instance) {
// No profile guided allocation is required in phpunit.
if (defined('PHPUNIT_TEST')) {
return false;
}
$behattimingfile = defined('BEHAT_FEATURE_TIMING_FILE') &&
@filesize(BEHAT_FEATURE_TIMING_FILE) ? BEHAT_FEATURE_TIMING_FILE : false;