LimeOutputCoverage.php 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. /*
  3. * This file is part of the Lime framework.
  4. *
  5. * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
  6. * (c) Bernhard Schussek <bernhard.schussek@symfony-project.com>
  7. *
  8. * This source file is subject to the MIT license that is bundled
  9. * with this source code in the file LICENSE.
  10. */
  11. class LimeOutputCoverage implements LimeOutputInterface
  12. {
  13. public function supportsThreading()
  14. {
  15. return false;
  16. }
  17. public function focus($file)
  18. {
  19. xdebug_start_code_coverage(XDEBUG_CC_UNUSED | XDEBUG_CC_DEAD_CODE);
  20. }
  21. public function flush()
  22. {
  23. echo serialize(xdebug_get_code_coverage());
  24. }
  25. public function close() {}
  26. public function plan($amount) {}
  27. public function pass($message, $file, $line) {}
  28. public function fail($message, $file, $line, $error = null) {}
  29. public function skip($message, $file, $line) {}
  30. public function todo($message, $file, $line) {}
  31. public function warning($message, $file, $line) {}
  32. public function error(LimeError $error) {}
  33. public function comment($message) {}
  34. }