Driver.php 1001 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. public const LINE_EXECUTED = 1;
  22. /**
  23. * @var int
  24. *
  25. * @see http://xdebug.org/docs/code_coverage
  26. */
  27. public const LINE_NOT_EXECUTED = -1;
  28. /**
  29. * @var int
  30. *
  31. * @see http://xdebug.org/docs/code_coverage
  32. */
  33. public const LINE_NOT_EXECUTABLE = -2;
  34. /**
  35. * Start collection of code coverage information.
  36. */
  37. public function start(bool $determineUnusedAndDead = true): void;
  38. /**
  39. * Stop collection of code coverage information.
  40. */
  41. public function stop(): array;
  42. }