Driver.php 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?php
  2. /*
  3. * This file is part of the php-code-coverage package.
  4. *
  5. * (c) Sebastian Bergmann <sebastian@phpunit.de>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace SebastianBergmann\CodeCoverage\Driver;
  11. /**
  12. * Interface for code coverage drivers.
  13. */
  14. interface Driver
  15. {
  16. /**
  17. * @var int
  18. *
  19. * @see http://xdebug.org/docs/code_coverage
  20. */
  21. const LINE_EXECUTED = 1;
  22. /**
  23. * @var int
  24. *
  25. * @see http://xdebug.org/docs/code_coverage
  26. */
  27. const LINE_NOT_EXECUTED = -1;
  28. /**
  29. * @var int
  30. *
  31. * @see http://xdebug.org/docs/code_coverage
  32. */
  33. const LINE_NOT_EXECUTABLE = -2;
  34. /**
  35. * Start collection of code coverage information.
  36. *
  37. * @param bool $determineUnusedAndDead
  38. */
  39. public function start($determineUnusedAndDead = true);
  40. /**
  41. * Stop collection of code coverage information.
  42. *
  43. * @return array
  44. */
  45. public function stop();
  46. }