You are here

protected function PHP_CodeCoverage_TestCase::getCoverageForClassWithAnonymousFunction 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::getCoverageForClassWithAnonymousFunction()
1 call to PHP_CodeCoverage_TestCase::getCoverageForClassWithAnonymousFunction()
PHP_CodeCoverage_Report_CloverTest::testCloverForClassWithAnonymousFunction in vendor/phpunit/php-code-coverage/tests/PHP/CodeCoverage/Report/CloverTest.php
@covers PHP_CodeCoverage_Report_Clover

File

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

Class

PHP_CodeCoverage_TestCase
Abstract base class for test case classes.

Code

protected function getCoverageForClassWithAnonymousFunction() {
  $coverage = new PHP_CodeCoverage($this
    ->setUpXdebugStubForClassWithAnonymousFunction(), new PHP_CodeCoverage_Filter());
  $coverage
    ->start('ClassWithAnonymousFunction', true);
  $coverage
    ->stop();
  return $coverage;
}