History log of /PHP-Parser/test/PhpParser/Node/NameTest.php (Results 1 – 25 of 26)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# daaadc3b 03-Jun-2024 Jorg Adam Sowa

Adjust tests to be compatible with PHPUnit 10 (#998)

This avoids warnings on PHPUnit 10, without actually
switching to PHPUnit 10.


# d57da64d 31-May-2024 Jorg Adam Sowa

Add missing void return types (#997)


# 23647573 21-May-2023 Nikita Popov

Represent names using string rather than array of parts

In most circumstances we are interested in the whole string, not
the parts split by namespace separator. As names are common, this

Represent names using string rather than array of parts

In most circumstances we are interested in the whole string, not
the parts split by namespace separator. As names are common, this
representation measurably improves memory usage and performance.

show more ...


# df3a7057 21-May-2023 Nikita Popov

Add Name::getParts(), deprecate Name::$parts

In preparation for switching this to a plain string in
PHP-Parser 5, deprecate direct access to the property and
provide an API that will

Add Name::getParts(), deprecate Name::$parts

In preparation for switching this to a plain string in
PHP-Parser 5, deprecate direct access to the property and
provide an API that will work on both versions.

(cherry picked from commit c9e5a13d68486e9fd75f9be1b4639644e54e7f4f)

show more ...


# a5033e38 29-Aug-2022 Nikita Popov

Format tests as well

The unnecessary parentheses for "new" are a bit annoying, but I
can live with it...


# 53b907d4 28-Aug-2022 Nikita Popov

Fix length bounds check in Name::slice()

The length check did not take into account that there may be a
non-zero offset at this point.

Fixes #875.


Revision tags: v4.3.0, v4.2.5, v4.2.4, v4.2.3, v4.2.2, v4.2.1
# b7e63615 19-Jan-2019 Lars Moelleken

updates via "rectorphp/rector" (#573)

- "global" -> remove unused "use" statements
- "phpunit" -> fix "@covers" comments
- "phpunit" -> replace "->will($this->returnValue()" with "->

updates via "rectorphp/rector" (#573)

- "global" -> remove unused "use" statements
- "phpunit" -> fix "@covers" comments
- "phpunit" -> replace "->will($this->returnValue()" with "->willReturn()"
- "UseTest.php" -> add missing namespace
- "composer.json" -> use "autoload-dev"
- remove -> "require_once" usage in the tests (use autoload-dev via composer.json)

-> most of the changes are done automatically by "https://github.com/rectorphp/rector"

show more ...


Revision tags: v4.2.0, v4.1.1, v4.1.0
# d638dd9b 22-Sep-2018 Tomáš Votruba

Use methods instead of annotations for expected exceptions (#533)


Revision tags: v4.0.4
# 16c5d107 18-Sep-2018 Nikita Popov

Revert "Add check for leading backslash in Name ctor"

This reverts commit 2f67429ec93857b8a3ae5a15165818e5eda8fb56.

Reverting this to avoid a BC break in a patch release, will
r

Revert "Add check for leading backslash in Name ctor"

This reverts commit 2f67429ec93857b8a3ae5a15165818e5eda8fb56.

Reverting this to avoid a BC break in a patch release, will
reapply for the next major version.

show more ...


# 2f67429e 21-Jul-2018 Nikita Popov

Add check for leading backslash in Name ctor

Fixes #523.


Revision tags: v4.0.3, v4.0.2, v4.0.1, v4.0.0, v3.1.5, v4.0.0beta1, v3.1.4
# 8fae99aa 10-Jan-2018 Gabriel Caruso

[CS] Remove spaces


Revision tags: v4.0.0alpha3, v3.1.3
# b507fa43 01-Dec-2017 Nikita Popov

Ensure names are not empty


Revision tags: v4.0.0alpha2, v3.1.2
# b58157f0 02-Nov-2017 TomasVotruba

add strict_types to tests + fix explode type


Revision tags: v4.0.0alpha1
# 65de9244 03-Oct-2017 Nikita Popov

Add Identifier::toString()

For symmetry with the Name API.

Also add some missing unit tests.


Revision tags: v3.1.1
# af128074 13-Aug-2017 TomasVotruba

[cs] apply same to tests


Revision tags: v3.1.0, v3.0.6
# 56b810e9 28-Apr-2017 Nikita Popov

Add getShortName() API

PHP's name resolution rules are f'ing complicated.


# 3c44785e 27-Apr-2017 Ekin

Bump phpunit version (#381)


Revision tags: v3.0.5, v3.0.4, v3.0.3, v3.0.2, v3.0.1, v3.0.0, v3.0.0beta2
# fa7357b4 22-Oct-2016 Nikita Popov

Represent empty Name::slice() using null

Instead of a Name([]) dummy value, that is invalid in other
contexts.


# 91cb82d3 22-Oct-2016 Nikita Popov

Explicitly support Name copy construction

It already worked beforehand by accident ... make clear it's
actually supported.


# 7672b974 21-Oct-2016 Nikita Popov

Remove Name::append() and Name::prepend()


# a910f6a2 09-Oct-2016 Nikita Popov

Remove $separator arg from Name::toString()


Revision tags: v3.0.0beta1, v2.1.1, v3.0.0alpha1
# b740076a 25-Jul-2016 Nikita Popov

Remove deprecated Name::set*() methods


# c9fea2ef 25-Jul-2016 Nikita Popov

Extend Name::slice() to support negative length+offset


Revision tags: v2.1.0, v2.0.1, v2.0.0, v2.0.0beta1, v1.4.1, v2.0.0alpha1, v1.4.0
# 0265c28e 12-Jul-2015 Nikita Popov

Switch NameResolver resolve methods to be immutable

To make it theoretically possible to expose this as API.

Add slice() method to Name to allow this. Deprecate existing mutable

Switch NameResolver resolve methods to be immutable

To make it theoretically possible to expose this as API.

Add slice() method to Name to allow this. Deprecate existing mutable
Name APIs.

show more ...


Revision tags: v1.3.0, v1.2.2, v1.2.1, v1.2.0, v1.1.0, v1.0.2, v1.0.1
# 66fd29cb 30-Sep-2014 nikic

Use stricter assertions where possible


12