WebTestCase and FixturesTrait define the same property ($containers)
dnl-jst opened this issue · 2 comments
dnl-jst commented
Fatal error: Liip\FunctionalTestBundle\Test\WebTestCase and Liip\TestFixturesBundle\Test\FixturesTrait define the same property ($containers) in the composition of App\Tests\TestCase\FunctionalTestCase. However, the definition differs and is considered incompatible. Class was composed in /var/www/tests/TestCase/FunctionalTestCase.php on line 1
Preconditions
PHP 7.2
- liip/functional-test-bundle 3.3.0
- liip/test-fixtures-bundle 1.4.0
Steps to reproduce
<?php declare(strict_types=1);
namespace App\Tests\TestCase;
use Liip\FunctionalTestBundle\Test\WebTestCase;
use Liip\TestFixturesBundle\Test\FixturesTrait;
class FunctionalTestCase extends WebTestCase
{
use FixturesTrait;
[...]
}
Expected result
- WebTestCase should be useable together with FixturesTrait
Actual result
alexislefebvre commented
Thanks for the report, it probably comes from liip/LiipTestFixturesBundle#44
alexislefebvre commented
Please try last release of the Fixtures bundle: https://github.com/liip/LiipTestFixturesBundle/releases/tag/1.4.1