You are here

public function PHP_CodeCoverageTest::testGetLinesToBeIgnoredOneLineAnnotations in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/php-code-coverage/tests/PHP/CodeCoverageTest.php \PHP_CodeCoverageTest::testGetLinesToBeIgnoredOneLineAnnotations()

@covers PHP_CodeCoverage::getLinesToBeIgnored

File

vendor/phpunit/php-code-coverage/tests/PHP/CodeCoverageTest.php, line 414

Class

PHP_CodeCoverageTest
Tests for the PHP_CodeCoverage class.

Code

public function testGetLinesToBeIgnoredOneLineAnnotations() {
  $this
    ->assertEquals(array(
    1,
    2,
    3,
    4,
    5,
    6,
    7,
    8,
    9,
    10,
    11,
    12,
    13,
    14,
    15,
    16,
    18,
    20,
    21,
    23,
    24,
    25,
    27,
    28,
    29,
    30,
    31,
    32,
    33,
    34,
    37,
  ), $this
    ->getLinesToBeIgnored()
    ->invoke($this->coverage, TEST_FILES_PATH . 'source_with_oneline_annotations.php'));
}