Merges with master

This commit is contained in:
luke
2021-08-01 15:40:34 +01:00
parent da73f4b395
commit 8861dd2401
2 changed files with 12 additions and 3 deletions

View File

@ -4,8 +4,6 @@ declare(strict_types=1);
namespace Pest\Logging;
use ReflectionClass;
use ReflectionProperty;
use function getmypid;
use Pest\Concerns\Testable;
use function Pest\version;
@ -17,6 +15,7 @@ use PHPUnit\Framework\TestSuite;
use PHPUnit\Framework\Warning;
use PHPUnit\Runner\PhptTestCase;
use PHPUnit\TextUI\DefaultResultPrinter;
use ReflectionProperty;
use function round;
use function str_replace;
use function strlen;
@ -309,6 +308,10 @@ final class TeamCity extends DefaultResultPrinter
private function removePestFromStackTrace(Throwable $e): void
{
if (!property_exists($e, 'serializableTrace')) {
return;
}
$property = new ReflectionProperty($e, 'serializableTrace');
$property->setAccessible(true);
$trace = $property->getValue($e);

View File

@ -585,6 +585,9 @@
PASS Tests\Visual\Help
✓ visual snapshot of help command output
PASS Tests\Visual\JUnit
✓ it is can successfully call all public methods
PASS Tests\Visual\SingleTestOrDirectory
✓ allows to run a single test
✓ allows to run a directory
@ -594,6 +597,9 @@
WARN Tests\Visual\Success
- visual snapshot of test suite on success
PASS Tests\Visual\TeamCity
✓ it is can successfully call all public methods
PASS Tests\Features\Depends
✓ first
✓ second
@ -608,5 +614,5 @@
✓ it is a test
✓ it uses correct parent class
Tests: 4 incompleted, 9 skipped, 388 passed
Tests: 4 incompleted, 9 skipped, 390 passed