mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
fix parallel execution of test class that inherit other class with the same name
This commit is contained in:
13
tests/Fixtures/Inheritance/Base/ExampleTest.php
Normal file
13
tests/Fixtures/Inheritance/Base/ExampleTest.php
Normal file
@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Fixtures\Inheritance\Base;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class ExampleTest extends TestCase
|
||||
{
|
||||
public function testExample()
|
||||
{
|
||||
$this->markTestSkipped();
|
||||
}
|
||||
}
|
||||
11
tests/Fixtures/Inheritance/ExampleTest.php
Normal file
11
tests/Fixtures/Inheritance/ExampleTest.php
Normal file
@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Fixtures\Inheritance;
|
||||
|
||||
class ExampleTest extends Base\ExampleTest
|
||||
{
|
||||
public function testExample()
|
||||
{
|
||||
$this->assertTrue(true);
|
||||
}
|
||||
}
|
||||
13
tests/Fixtures/phpunit-parallel-inheritance.xml
Normal file
13
tests/Fixtures/phpunit-parallel-inheritance.xml
Normal 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>
|
||||
Reference in New Issue
Block a user