Hi,
There is a configuration for PHPUnit step in the pipeline:
- test_phpunit: &test_phpunit
name: PHPUnit Tests
script:
- vendor/bin/phpunit -c dev/tests/unit/phpunit.xml.dist app/code/
During the pipeline execution I am receiving the error like the one presented below and the whole pipeline is blocked.
<span>PHPUnit 6.5.14 by Sebastian Bergmann and contributors.</span>
<span>Deprecated: Function ReflectionType::__toString() is deprecated in /opt/atlassian/pipelines/agent/build/vendor/phpunit/phpunit-mock-objects/src/Generator.php:1089.</span><span>+ vendor/bin/phpunit -c <a href="https://bitbucket.org/mag_mpr/magento2-prebooking/src/0ad844a6b4af55e55e5245e03e696c6e79aa7de1/dev/tests/unit/phpunit.xml.dist" target="_blank" rel="noopener noreferrer">dev/tests/unit/phpunit.xml.dist</a> app/code/</span>
Could you help me to resolve the issue?
Thanks in advance.
-------------------------------------------------------------
Issue solved - the PHP version on included image was not correct.