You are here

public function PHP_Token_FunctionTest::testGetEndLine in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/phpunit/php-token-stream/tests/Token/FunctionTest.php \PHP_Token_FunctionTest::testGetEndLine()

@covers PHP_TokenWithScope::getEndLine

File

vendor/phpunit/php-token-stream/tests/Token/FunctionTest.php, line 89

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());
}