public function PHP_Token_NamespaceTest::testGetEndLineWithScopedNamespace

File

drupal/core/vendor/phpunit/php-token-stream/Tests/Token/NamespaceTest.php, line 114

Class

PHP_Token_NamespaceTest
Tests for the PHP_Token_NAMESPACE class.

Code

public function testGetEndLineWithScopedNamespace() {
  $tokenStream = new PHP_Token_Stream(TEST_FILES_PATH . 'classInScopedNamespace.php');
  foreach ($tokenStream as $token) {
    if ($token instanceof PHP_Token_NAMESPACE) {
      $this
        ->assertSame(8, $token
        ->getEndLine());
    }
  }
}