public function PHP_Token_FunctionTest::testGetEndLine

@covers PHP_TokenWithScope::getEndLine

File

drupal/core/vendor/phpunit/php-token-stream/Tests/Token/FunctionTest.php, line 131

Class

PHP_Token_FunctionTest
Tests for the PHP_Token_FUNCTION class.

Code

public function testGetEndLine() {
  $this
    ->assertEquals(5, $this->functions[0]
    ->getEndLine());
  $this
    ->assertEquals(12, $this->functions[1]
    ->getEndLine());
  $this
    ->assertEquals(19, $this->functions[2]
    ->getEndLine());
  $this
    ->assertEquals(23, $this->functions[3]
    ->getEndLine());
  $this
    ->assertEquals(31, $this->functions[4]
    ->getEndLine());
}