fix parallel execution of test class that inherit other class with the same name

This commit is contained in:
Nikos Charalampidis
2023-03-29 13:02:18 +03:00
parent ba87e1fde8
commit 1965763cd0
9 changed files with 59 additions and 5 deletions

View File

@ -0,0 +1,13 @@
<?php
namespace Tests\Fixtures\Inheritance\Base;
use PHPUnit\Framework\TestCase;
class ExampleTest extends TestCase
{
public function testExample()
{
$this->markTestSkipped();
}
}

View File

@ -0,0 +1,11 @@
<?php
namespace Tests\Fixtures\Inheritance;
class ExampleTest extends Base\ExampleTest
{
public function testExample()
{
$this->assertTrue(true);
}
}

View File

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="../../vendor/autoload.php"
colors="true"
>
<testsuites>
<testsuite name="Parallel Inheritance">
<directory suffix="Test.php">./Inheritance</directory>
<exclude>./Inheritance/Base</exclude>
</testsuite>
</testsuites>
</phpunit>