Skip to content

Error with StdoTest #8315

Closed
Closed
@dmanners

Description

@dmanners

Preconditions

  1. Magento: develop
  2. PHP 7.0.15

Steps to reproduce

  1. Run ./vendor/bin/phpunit --debug -v -c dev/tests/unit/phpunit.xml.dist setup/src/Magento/Setup/Test/Unit/Module/I18n/Dictionary/Writer/Csv/StdoTest.php

Expected result

  1. Assertion to show as all green

Actual result

  1. PHPUnit cannot output anything as it uses the STDOUT stream which has just been destroyed in the teadown of the test.

I am not even 100% if this testing is actually makes sense. But because of the __destruct method in Magento\Setup\Module\I18n\Dictionary\Writer\Csv the output will always be closed and then PHPUnit will fail when trying to write the test results to the screen.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentbug report

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions