liip / LiipFunctionalTestBundle

Some helper classes for writing functional tests in Symfony

Home Page:http://liip.ch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WebTestCase and FixturesTrait define the same property ($containers)

dnl-jst opened this issue · comments

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

Thanks for the report, it probably comes from liip/LiipTestFixturesBundle#44