mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
Merges with master
This commit is contained in:
@ -4,8 +4,6 @@ declare(strict_types=1);
|
|||||||
|
|
||||||
namespace Pest\Logging;
|
namespace Pest\Logging;
|
||||||
|
|
||||||
use ReflectionClass;
|
|
||||||
use ReflectionProperty;
|
|
||||||
use function getmypid;
|
use function getmypid;
|
||||||
use Pest\Concerns\Testable;
|
use Pest\Concerns\Testable;
|
||||||
use function Pest\version;
|
use function Pest\version;
|
||||||
@ -17,6 +15,7 @@ use PHPUnit\Framework\TestSuite;
|
|||||||
use PHPUnit\Framework\Warning;
|
use PHPUnit\Framework\Warning;
|
||||||
use PHPUnit\Runner\PhptTestCase;
|
use PHPUnit\Runner\PhptTestCase;
|
||||||
use PHPUnit\TextUI\DefaultResultPrinter;
|
use PHPUnit\TextUI\DefaultResultPrinter;
|
||||||
|
use ReflectionProperty;
|
||||||
use function round;
|
use function round;
|
||||||
use function str_replace;
|
use function str_replace;
|
||||||
use function strlen;
|
use function strlen;
|
||||||
@ -309,6 +308,10 @@ final class TeamCity extends DefaultResultPrinter
|
|||||||
|
|
||||||
private function removePestFromStackTrace(Throwable $e): void
|
private function removePestFromStackTrace(Throwable $e): void
|
||||||
{
|
{
|
||||||
|
if (!property_exists($e, 'serializableTrace')) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$property = new ReflectionProperty($e, 'serializableTrace');
|
$property = new ReflectionProperty($e, 'serializableTrace');
|
||||||
$property->setAccessible(true);
|
$property->setAccessible(true);
|
||||||
$trace = $property->getValue($e);
|
$trace = $property->getValue($e);
|
||||||
|
|||||||
@ -585,6 +585,9 @@
|
|||||||
PASS Tests\Visual\Help
|
PASS Tests\Visual\Help
|
||||||
✓ visual snapshot of help command output
|
✓ visual snapshot of help command output
|
||||||
|
|
||||||
|
PASS Tests\Visual\JUnit
|
||||||
|
✓ it is can successfully call all public methods
|
||||||
|
|
||||||
PASS Tests\Visual\SingleTestOrDirectory
|
PASS Tests\Visual\SingleTestOrDirectory
|
||||||
✓ allows to run a single test
|
✓ allows to run a single test
|
||||||
✓ allows to run a directory
|
✓ allows to run a directory
|
||||||
@ -594,6 +597,9 @@
|
|||||||
WARN Tests\Visual\Success
|
WARN Tests\Visual\Success
|
||||||
- visual snapshot of test suite on success
|
- visual snapshot of test suite on success
|
||||||
|
|
||||||
|
PASS Tests\Visual\TeamCity
|
||||||
|
✓ it is can successfully call all public methods
|
||||||
|
|
||||||
PASS Tests\Features\Depends
|
PASS Tests\Features\Depends
|
||||||
✓ first
|
✓ first
|
||||||
✓ second
|
✓ second
|
||||||
@ -608,5 +614,5 @@
|
|||||||
✓ it is a test
|
✓ it is a test
|
||||||
✓ it uses correct parent class
|
✓ it uses correct parent class
|
||||||
|
|
||||||
Tests: 4 incompleted, 9 skipped, 388 passed
|
Tests: 4 incompleted, 9 skipped, 390 passed
|
||||||
|
|
||||||
Reference in New Issue
Block a user