mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
TestSuiteLoader will always consider classes from the current file
This commit is contained in:
13
tests/PHPUnit/CustomTestCase/ChildTest.php
Normal file
13
tests/PHPUnit/CustomTestCase/ChildTest.php
Normal file
@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Tests\CustomTestCase;
|
||||
|
||||
class ChildTest extends ParentTest
|
||||
{
|
||||
private function getEntity(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
22
tests/PHPUnit/CustomTestCase/ParentTest.php
Normal file
22
tests/PHPUnit/CustomTestCase/ParentTest.php
Normal file
@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Tests\CustomTestCase;
|
||||
|
||||
use function PHPUnit\Framework\assertTrue;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class ParentTest extends TestCase
|
||||
{
|
||||
private function getEntity(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/** @test */
|
||||
public function testOverrideMethod(): void
|
||||
{
|
||||
assertTrue($this->getEntity() || true);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user