This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit

eZ Community » Forums » eZ Platform » PHPUnit functional tests

PHPUnit functional tests

PHPUnit functional tests

Tuesday 24 May 2016 8:57:46 pm - 1 reply


I followed the documentation on Symfony website for phpunit tests and installed phpunit etc.

PHPUnits tests are working well, however functional tests are not working due to invalid yaml files coming from EzPublishCoreBundle as you can see below:

 Symfony\Component\DependencyInjection\Exception\InvalidArgumentException:  The file  "/var/www/site/application/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishCoreBundle/DependencyInjection/../Resources/config/services.yml"  does not contain valid YAML.
Caused by
Symfony\Component\Yaml\Exception\ParseException:  The reserved indicator "@" cannot start a plain scalar; you need to  quote the scalar at line 61 (near "arguments:  [%ezpublish.siteaccess.default%, %ezpublish.siteaccess.list%,  @event_dispatcher]").

Is there any way to bypass this or should I edit them all?

The problem is the missing double quote where an argument contains a @.

Many thanks for your time.

Friday 27 May 2016 7:28:36 pm

Functional tests are working well with phpunit 4.8.26, it seems that 5.x version is more strict when validating yaml files.


You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from