mirror of
https://github.com/pestphp/pest.git
synced 2026-03-07 00:07:22 +01:00
feat: improves parallel output
This commit is contained in:
@ -40,7 +40,7 @@ final class KernelDump
|
|||||||
*/
|
*/
|
||||||
public function disable(): void
|
public function disable(): void
|
||||||
{
|
{
|
||||||
@ob_clean();
|
@ob_clean(); // @phpstan-ignore-line
|
||||||
|
|
||||||
if ($this->buffer !== '') {
|
if ($this->buffer !== '') {
|
||||||
$this->flush('INFO');
|
$this->flush('INFO');
|
||||||
@ -52,7 +52,7 @@ final class KernelDump
|
|||||||
*/
|
*/
|
||||||
public function shutdown(): void
|
public function shutdown(): void
|
||||||
{
|
{
|
||||||
@ob_clean();
|
@ob_clean(); // @phpstan-ignore-line
|
||||||
|
|
||||||
if ($this->buffer !== '') {
|
if ($this->buffer !== '') {
|
||||||
$this->flush('ERROR');
|
$this->flush('ERROR');
|
||||||
|
|||||||
@ -13,6 +13,6 @@ $run = function () {
|
|||||||
};
|
};
|
||||||
|
|
||||||
test('parallel', function () use ($run) {
|
test('parallel', function () use ($run) {
|
||||||
expect($run())->toContain('Running 650 tests using 3 processes')
|
expect($run())->toContain('Tests: 4 incomplete, 4 todos, 15 skipped, 626 passed (1545 assertions)')
|
||||||
->toContain('Tests: 4 incomplete, 4 todos, 15 skipped, 626 passed (1545 assertions)');
|
->toContain('Parallel: 3 processes');
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user