Driver.php (955B)
1 <?php 2 /* 3 * This file is part of the PHP_CodeCoverage 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 11 /** 12 * Interface for code coverage drivers. 13 * 14 * @since Class available since Release 1.0.0 15 */ 16 interface PHP_CodeCoverage_Driver 17 { 18 /** 19 * @var int 20 * @see http://xdebug.org/docs/code_coverage 21 */ 22 const LINE_EXECUTED = 1; 23 24 /** 25 * @var int 26 * @see http://xdebug.org/docs/code_coverage 27 */ 28 const LINE_NOT_EXECUTED = -1; 29 30 /** 31 * @var int 32 * @see http://xdebug.org/docs/code_coverage 33 */ 34 const LINE_NOT_EXECUTABLE = -2; 35 36 /** 37 * Start collection of code coverage information. 38 */ 39 public function start(); 40 41 /** 42 * Stop collection of code coverage information. 43 * 44 * @return array 45 */ 46 public function stop(); 47 }