You are here

protected function PHP_CodeCoverage_TestCase::setUpXdebugStubForClassWithAnonymousFunction 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::setUpXdebugStubForClassWithAnonymousFunction()
1 call to PHP_CodeCoverage_TestCase::setUpXdebugStubForClassWithAnonymousFunction()
PHP_CodeCoverage_TestCase::getCoverageForClassWithAnonymousFunction in vendor/phpunit/php-code-coverage/tests/TestCase.php

File

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

Class

PHP_CodeCoverage_TestCase
Abstract base class for test case classes.

Code

protected function setUpXdebugStubForClassWithAnonymousFunction() {
  $stub = $this
    ->getMock('PHP_CodeCoverage_Driver_Xdebug');
  $stub
    ->expects($this
    ->any())
    ->method('stop')
    ->will($this
    ->returnValue(array(
    TEST_FILES_PATH . 'source_with_class_and_anonymous_function.php' => array(
      7 => 1,
      9 => 1,
      10 => -1,
      11 => 1,
      12 => 1,
      13 => 1,
      14 => 1,
      17 => 1,
      18 => 1,
    ),
  )));
  return $stub;
}