protected function PHP_CodeCoverageTest::setUp

Sets up the fixture, for example, open a network connection. This method is called before a test is executed.

Overrides PHPUnit_Framework_TestCase::setUp

File

drupal/core/vendor/phpunit/php-code-coverage/Tests/PHP/CodeCoverageTest.php, line 77

Class

PHP_CodeCoverageTest
Tests for the PHP_CodeCoverage class.

Code

protected function setUp() {
  $this->coverage = new PHP_CodeCoverage();
  $this->getLinesToBeCovered = new ReflectionMethod('PHP_CodeCoverage', 'getLinesToBeCovered');
  $this->getLinesToBeCovered
    ->setAccessible(TRUE);
}