On Commerce Kickstart we are looking to test on PHP 7 because we need to ensure it will work there also. However, we get the following error caused by drupalextension:

./bin/behat --config behat.travis.yml --tags ~@overrides; fi
                                                                               
  [Symfony\Component\DependencyInjection\Exception\InvalidArgumentException]   
  The file "/home/travis/build/commerceguys/drupal/profiles/commerce_kickstart/tests/behat/vendor/drupal/drupal-extension/src/Drupal/DrupalExtension/Ser  
  viceContainer/config/services.yml" does not contain valid YAML.              
                                                                               
                                                                               
  [Symfony\Component\Yaml\Exception\ParseException]                            
  The reserved indicator "@" cannot start a plain scalar; you need to quote the scalar at line 37 (near "- @drupal.random").  

See #2672414: PHP 7 release

Comments

lsolesen created an issue. See original summary.

jhedstrom’s picture

Status: Active » Postponed (maintainer needs more info)

Are you using the latest code from https://github.com/jhedstrom/drupalextension (if you are using Composer to install, that should be where the code comes from)? This should be working just fine with PHP 7.

lsolesen’s picture

Category: Bug report » Support request
Status: Postponed (maintainer needs more info) » Fixed

This was fixed by upgrading to latest version.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.