mirror of
https://github.com/pestphp/pest.git
synced 2026-03-07 00:07:22 +01:00
refactor: renames traits
This commit is contained in:
@ -5,7 +5,7 @@ declare(strict_types=1);
|
||||
namespace Pest\Logging;
|
||||
|
||||
use function getmypid;
|
||||
use Pest\Concerns\TestCase;
|
||||
use Pest\Concerns\Testable;
|
||||
use PHPUnit\Framework\AssertionFailedError;
|
||||
use PHPUnit\Framework\Test;
|
||||
use PHPUnit\Framework\TestResult;
|
||||
@ -109,7 +109,7 @@ final class TeamCity extends DefaultResultPrinter
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Test|TestCase $test
|
||||
* @param Test|Testable $test
|
||||
*/
|
||||
public function startTest(Test $test): void
|
||||
{
|
||||
@ -127,7 +127,7 @@ final class TeamCity extends DefaultResultPrinter
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Test|TestCase $test
|
||||
* @param Test|Testable $test
|
||||
*/
|
||||
public function endTest(Test $test, float $time): void
|
||||
{
|
||||
@ -144,7 +144,7 @@ final class TeamCity extends DefaultResultPrinter
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Test|TestCase $test
|
||||
* @param Test|Testable $test
|
||||
*/
|
||||
public function addError(Test $test, Throwable $t, float $time): void
|
||||
{
|
||||
@ -154,7 +154,7 @@ final class TeamCity extends DefaultResultPrinter
|
||||
/**
|
||||
* @phpstan-ignore-next-line
|
||||
*
|
||||
* @param Test|TestCase $test
|
||||
* @param Test|Testable $test
|
||||
*/
|
||||
public function addWarning(Test $test, Warning $e, float $time): void
|
||||
{
|
||||
@ -208,6 +208,6 @@ final class TeamCity extends DefaultResultPrinter
|
||||
/** @var array<string, string> $uses */
|
||||
$uses = class_uses($test);
|
||||
|
||||
return in_array(TestCase::class, $uses, true);
|
||||
return in_array(Testable::class, $uses, true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user