Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test Runner swallows output made during test #5278

Closed
sebastianbergmann opened this issue Mar 10, 2023 · 0 comments
Closed

Test Runner swallows output made during test #5278

sebastianbergmann opened this issue Mar 10, 2023 · 0 comments
Assignees
Labels
feature/test-runner CLI test runner type/bug Something is broken version/10 Something affects PHPUnit 10

Comments

@sebastianbergmann
Copy link
Owner

Test.php

<?php declare(strict_types=1);
use PHPUnit\Framework\TestCase;

final class Test extends TestCase
{
    public function testOne(): void
    {
        $v = true;

        var_dump($v);

        $this->assertTrue($v);
    }
}

PHPUnit 10.0.15

$ phpunit Test.php
PHPUnit 10.0.15 by Sebastian Bergmann and contributors.

Runtime:       PHP 8.2.3

.                                                                   1 / 1 (100%)

Time: 00:00.014, Memory: 4.00 MB

OK (1 test, 1 assertion)

PHPUnit 9.6.5

$ phpunit --verbose Test.php
PHPUnit 9.6.5 by Sebastian Bergmann and contributors.

Runtime:       PHP 8.2.3

.                                                                   1 / 1 (100%)bool(true)


Time: 00:00.048, Memory: 4.00 MB

OK (1 test, 1 assertion)
@sebastianbergmann sebastianbergmann added type/bug Something is broken feature/test-runner CLI test runner version/10 Something affects PHPUnit 10 labels Mar 10, 2023
@sebastianbergmann sebastianbergmann self-assigned this Mar 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature/test-runner CLI test runner type/bug Something is broken version/10 Something affects PHPUnit 10
Projects
None yet
Development

No branches or pull requests

1 participant