You are here

protected function PHP_CodeCoverage_TestCase::setUpXdebugStubForFileWithIgnoredLines in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/php-code-coverage/tests/TestCase.php \PHP_CodeCoverage_TestCase::setUpXdebugStubForFileWithIgnoredLines()
1 call to PHP_CodeCoverage_TestCase::setUpXdebugStubForFileWithIgnoredLines()
PHP_CodeCoverage_TestCase::getCoverageForFileWithIgnoredLines in vendor/phpunit/php-code-coverage/tests/TestCase.php

File

vendor/phpunit/php-code-coverage/tests/TestCase.php, line 256

Class

PHP_CodeCoverage_TestCase
Abstract base class for test case classes.

Code

protected function setUpXdebugStubForFileWithIgnoredLines() {
  $stub = $this
    ->getMock('PHP_CodeCoverage_Driver_Xdebug');
  $stub
    ->expects($this
    ->any())
    ->method('stop')
    ->will($this
    ->returnValue(array(
    TEST_FILES_PATH . 'source_with_ignore.php' => array(
      2 => 1,
      4 => -1,
      6 => -1,
      7 => 1,
    ),
  )));
  return $stub;
}