I am trying to integrate PHPunit into a large project, everything seems fine, except that all methods that rely on ob_start () will lead to risky testing.
Reading online seems to be risky tests - these are tests that execute code that is not covered by the testing method. However, I did not use the @covers annotation at all, and this only happens on ob_start ().
So a few questions:
- Can this problem be solved?
- Is there something inherently wrong with ob_start when it comes to testing?
- Is there any way around this (if this is not possible to solve).
If used, a framework is used whose views are returned (instead of being sent to the browser), Codeigniter is a classic example where you can return views. The views returned depend on ob_start (). Many thanks!
source share