liip / LiipFunctionalTestBundle

Some helper classes for writing functional tests in Symfony
http://liip.ch
MIT License
639 stars 182 forks source link

WebTestCase and FixturesTrait define the same property ($containers) #548

Closed dnl-jst closed 4 years ago

dnl-jst commented 4 years ago

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

  1. liip/functional-test-bundle 3.3.0
  2. 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

  1. WebTestCase should be useable together with FixturesTrait

Actual result

Screenshot from 2019-11-13 22-47-46

alexislefebvre commented 4 years ago

Thanks for the report, it probably comes from https://github.com/liip/LiipTestFixturesBundle/pull/44

alexislefebvre commented 4 years ago

Please try last release of the Fixtures bundle: https://github.com/liip/LiipTestFixturesBundle/releases/tag/1.4.1