chore: refactor RenderableOnCollisionEditor

This commit is contained in:
Nuno Maduro
2023-03-31 09:39:05 +01:00
parent 3f38f19df8
commit 3cee6a499d
5 changed files with 11 additions and 7 deletions

View File

@ -19,7 +19,7 @@
"require": {
"php": "^8.1.0",
"brianium/paratest": "^7.1.2",
"nunomaduro/collision": "^v7.x-dev",
"nunomaduro/collision": "^7.4.0",
"nunomaduro/termwind": "^1.15.1",
"pestphp/pest-plugin": "^2.0.1",
"pestphp/pest-plugin-arch": "^2.0.2",

View File

@ -1,6 +1,7 @@
<?php
declare(strict_types=1);
/*
* This file is part of PHPUnit.
*

View File

@ -868,6 +868,9 @@
✓ it throw expectation failed exception with string argument
✓ it throw expectation failed exception with array argument
PASS Tests\Unit\Overrides\ThrowableBuilder
✓ collision editor can be added to the stack trace
PASS Tests\Unit\Plugins\Environment
✓ environment is set to CI when --ci option is used
✓ environment is set to Local when --ci option is not used
@ -1013,4 +1016,4 @@
PASS Tests\Visual\Version
✓ visual snapshot of help command output
Tests: 2 deprecated, 3 warnings, 4 incomplete, 1 notice, 4 todos, 14 skipped, 708 passed (1709 assertions)
Tests: 2 deprecated, 3 warnings, 4 incomplete, 1 notice, 4 todos, 14 skipped, 709 passed (1711 assertions)

View File

@ -21,8 +21,8 @@ test('collision editor can be added to the stack trace', function () {
}
};
expect(ThrowableBuilder::from($exception))
->stackTrace()->toStartWith('/data/projects/open-source/pest/tests/Unit/Overrides/../../Pest.php:5')
->and(ThrowableBuilder::from(new Exception('test')))
->stackTrace()->toStartWith('/data/projects/open-source/pest/tests/Unit/Overrides/ThrowableBuilder.php:26');
expect(ThrowableBuilder::from($exception)->stackTrace())
->toContain('tests/Unit/Overrides/../../Pest.php:5')
->and(ThrowableBuilder::from(new Exception('test'))->stackTrace())
->toContain('tests/Unit/Overrides/ThrowableBuilder.php:26');
});

View File

@ -18,7 +18,7 @@ $run = function () {
test('parallel', function () use ($run) {
expect($run('--exclude-group=integration'))
->toContain('Tests: 2 deprecated, 3 warnings, 4 incomplete, 1 notice, 4 todos, 11 skipped, 696 passed (1694 assertions)')
->toContain('Tests: 2 deprecated, 3 warnings, 4 incomplete, 1 notice, 4 todos, 11 skipped, 697 passed (1696 assertions)')
->toContain('Parallel: 3 processes');
})->skip(PHP_OS_FAMILY === 'Windows');