Documentation

UndoNamespacedNameSingleTokenTest.php

Tests the tokenization of identifier names.

As of PHP 8, identifier names are tokenized differently, depending on them being either fully qualified, partially qualified or relative to the current namespace.

This test file safeguards that in PHPCS 3.x this new form of tokenization is "undone" and the tokenization of these identifier names is the same in all PHP versions based on how these names were tokenized in PHP 5/7.

Tags
author

Juliette Reinders Folmer phpcs_nospam@adviesenzo.nl

copyright

2020 Squiz Pty Ltd (ABN 77 084 670 600)

license

https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence

Interfaces, Classes and Traits

UndoNamespacedNameSingleTokenTest

Search results