public function PHP_Token_FunctionTest::testGetLine

@covers PHP_Token::getLine

File

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

Class

PHP_Token_FunctionTest
Tests for the PHP_Token_FUNCTION class.

Code

public function testGetLine() {
  $this
    ->assertEquals(5, $this->functions[0]
    ->getLine());
  $this
    ->assertEquals(10, $this->functions[1]
    ->getLine());
  $this
    ->assertEquals(17, $this->functions[2]
    ->getLine());
  $this
    ->assertEquals(21, $this->functions[3]
    ->getLine());
  $this
    ->assertEquals(29, $this->functions[4]
    ->getLine());
}