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

Question about the memory output message #578

Closed
eriknyk opened this issue May 25, 2012 · 2 comments
Closed

Question about the memory output message #578

eriknyk opened this issue May 25, 2012 · 2 comments

Comments

@eriknyk
Copy link

eriknyk commented May 25, 2012

Hi,I've created a skeleton for my class, it is olny skeleton any method was completed by now.
I've executed the test:
this is my output

phpunit Tests/EventDispatcherTest.php
PHPUnit 3.6.10 by Sebastian Bergmann.

IIIIIII

Time: 0 seconds, Memory: 4.75Mb

OK, but incomplete or skipped tests!
Tests: 7, Assertions: 0, Incomplete: 7.


The question is; Why is show me: Memory 4.75Mb, I suppose that is the memory used by the PHPUnit framework too, because is not posible that was the memory used only the test class. That is right?

I think that it should be show the shown me the memory usage at the test class only.

Regards.

@edorian
Copy link
Sponsor Contributor

edorian commented May 25, 2012

Yes that is right. It's the complete peak memory used throughout the test suite. I don't see how you'd calculate the "memory used only by the tests" in any meaningful way given that memory gets freed during execution.

Nothing we can do here

@edorian edorian closed this as completed May 25, 2012
@eriknyk
Copy link
Author

eriknyk commented May 26, 2012

I see, but I think that we can get it with a difference between memory at "phpunit framework" and "test classes", we get the result spected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants