We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The Archive constructor calls ob_end_clean():
Archive
ob_end_clean()
ArchiveStream-php/src/Archive.php
Line 94 in 87540ce
I get why you do this but it causes problems with phpunit tests (because it uses output buffering to know what the tested code outputted):
Test code or tested code did not (only) close its own output buffers
Would it be possible to add an argument to not disable output buffering?
The text was updated successfully, but these errors were encountered:
For the purposes of testing, I believe you can mock out the function by doing something like this in your test file:
<?php namespace Barracuda\ArchiveStream { function ob_end_clean() { } } namespace my\test\namespace { # Test code that invokes ArchiveStream here }
This overrides ob_end_clean with a no-op function inside the ArchiveStream namespace so you won't get errors.
ob_end_clean
Sorry, something went wrong.
No branches or pull requests
The
Archive
constructor callsob_end_clean()
:ArchiveStream-php/src/Archive.php
Line 94 in 87540ce
I get why you do this but it causes problems with phpunit tests (because it uses output buffering to know what the tested code outputted):
Would it be possible to add an argument to not disable output buffering?
The text was updated successfully, but these errors were encountered: