无法使用phpunit扩展symfony中的泛型类

时间:2019-02-27 19:18:40

标签: symfony phpunit

我有头等舱:

namespace Tests\AppBundle\EntitiesConstraints;

use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
use Symfony\Component\Validator\Validation;

class EntityTest extends WebTestCase
{
...}

和第二个:

namespace Tests\AppBundle\EntitiesConstraints;

use AppBundle\Entity\AnnonceSuperClasse;
use Symfony\Component\Validator\Validation;
use Tests\AppBundle\EntitiesConstraints\EntityTest;

class AnnoncesAssertTest extends EntityTest
{
...}

问题是,显然,我无法扩展EntityTest。

我收到此消息:

  

严重错误:类'Tests \ AppBundle \ EntitiesConstraints \ EntityTest'   找不到   C:\ wamp \ www \ projets \ Tabadoul \ tests \ EntitiesConstraints \ AnnoncesAssertTest.php   在第9行

提前感谢您的帮助!

0 个答案:

没有答案