You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to upgrade my app to Symfony 5.3. Previously this worked in 5.2.11 with functional-test-bundle 4.4.0 and test-fixtures-bundle 1.11.2. After upgrading to most recent versions of all, I get the error below:
PHP Fatal error: Liip\FunctionalTestBundle\Test\WebTestCase and Liip\TestFixturesBundle\Test\FixturesTrait define the same property ($containers) in the composition of App\Tests\AbstractFixtureWebTestCase. However, the definition differs and is considered incompatible. Class was composed in /var/www/symfony/tests/AbstractFixtureWebTestCase.php on line 14
This is the same error as #548 but obviously - much more recent versions.
Preconditions
PHP 7.4.22
Symfony 5.3.4
liip/functional-test-bundle 4.4.2
liip/test-fixtures-bundle 1.12.0
Steps to reproduce
namespaceApp\Tests;
useLiip\FunctionalTestBundle\Test\WebTestCase;
useLiip\TestFixturesBundle\Test\FixturesTrait;
abstractclass AbstractFixtureWebTestCase extends WebTestCase
{
use FixturesTrait;
Expected result
these two bundles should work together as before
Actual result
PHP Fatal error: Liip\FunctionalTestBundle\Test\WebTestCase and Liip\TestFixturesBundle\Test\FixturesTrait define the same property ($containers) in the composition of App\Tests\AbstractFixtureWebTestCase. However, the definition differs and is considered incompatible. Class was composed in /var/www/symfony/tests/AbstractFixtureWebTestCase.php on line 14
The text was updated successfully, but these errors were encountered:
LiipTestFixturesBundle v1 uses a trait, which cause conflicts with the test bundle. LiipTestFixturesBundle v2 doesn't use a trait, it's easier to use both bundles. So yes it doesn't fix the issue on current version but it will avoid it in the long run.
I am trying to upgrade my app to Symfony 5.3. Previously this worked in 5.2.11 with functional-test-bundle 4.4.0 and test-fixtures-bundle 1.11.2. After upgrading to most recent versions of all, I get the error below:
PHP Fatal error: Liip\FunctionalTestBundle\Test\WebTestCase and Liip\TestFixturesBundle\Test\FixturesTrait define the same property ($containers) in the composition of App\Tests\AbstractFixtureWebTestCase. However, the definition differs and is considered incompatible. Class was composed in /var/www/symfony/tests/AbstractFixtureWebTestCase.php on line 14
This is the same error as #548 but obviously - much more recent versions.
Preconditions
Steps to reproduce
Expected result
Actual result
PHP Fatal error: Liip\FunctionalTestBundle\Test\WebTestCase and Liip\TestFixturesBundle\Test\FixturesTrait define the same property ($containers) in the composition of App\Tests\AbstractFixtureWebTestCase. However, the definition differs and is considered incompatible. Class was composed in /var/www/symfony/tests/AbstractFixtureWebTestCase.php on line 14
The text was updated successfully, but these errors were encountered: