Skip to content

Commit

Permalink
Merge pull request #179 from PHPCSStandards/feature/variable-getmembe…
Browse files Browse the repository at this point in the history
…rpropdiff-tests-add-names

GetMemberPropertiesDiffTest: use named data provider entries
  • Loading branch information
jrfnl committed Aug 31, 2020
2 parents ed4bd99 + 4d8c594 commit 8b23ad7
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions Tests/Utils/Variables/GetMemberPropertiesDiffTest.php
Expand Up @@ -88,7 +88,7 @@ public function testGetMemberProperties($identifier, $expected)
public function dataGetMemberProperties()
{
return [
[
'php8-union-types-simple' => [
'/* testPHP8UnionTypesSimple */',
[
'scope' => 'public',
Expand All @@ -100,7 +100,7 @@ public function dataGetMemberProperties()
'nullable_type' => false,
],
],
[
'php8-union-types-two-classes' => [
'/* testPHP8UnionTypesTwoClasses */',
[
'scope' => 'private',
Expand All @@ -112,7 +112,7 @@ public function dataGetMemberProperties()
'nullable_type' => false,
],
],
[
'php8-union-types-all-base-types' => [
'/* testPHP8UnionTypesAllBaseTypes */',
[
'scope' => 'protected',
Expand All @@ -124,7 +124,7 @@ public function dataGetMemberProperties()
'nullable_type' => false,
],
],
[
'php8-union-types-all-pseudo-types' => [
'/* testPHP8UnionTypesAllPseudoTypes */',
[
'scope' => 'public',
Expand All @@ -136,7 +136,7 @@ public function dataGetMemberProperties()
'nullable_type' => false,
],
],
[
'php8-union-types-illegal-types' => [
'/* testPHP8UnionTypesIllegalTypes */',
[
'scope' => 'public',
Expand All @@ -148,7 +148,7 @@ public function dataGetMemberProperties()
'nullable_type' => false,
],
],
[
'php8-union-types-nullable' => [
'/* testPHP8UnionTypesNullable */',
[
'scope' => 'public',
Expand All @@ -160,7 +160,7 @@ public function dataGetMemberProperties()
'nullable_type' => true,
],
],
[
'php8-union-types-pseudo-type-null' => [
'/* testPHP8PseudoTypeNull */',
[
'scope' => 'public',
Expand All @@ -172,7 +172,7 @@ public function dataGetMemberProperties()
'nullable_type' => false,
],
],
[
'php8-union-types-pseudo-type-false' => [
'/* testPHP8PseudoTypeFalse */',
[
'scope' => 'public',
Expand All @@ -184,7 +184,7 @@ public function dataGetMemberProperties()
'nullable_type' => false,
],
],
[
'php8-union-types-pseudo-type-false-and-bool' => [
'/* testPHP8PseudoTypeFalseAndBool */',
[
'scope' => 'public',
Expand All @@ -196,7 +196,7 @@ public function dataGetMemberProperties()
'nullable_type' => false,
],
],
[
'php8-union-types-object-and-class' => [
'/* testPHP8ObjectAndClass */',
[
'scope' => 'public',
Expand All @@ -208,7 +208,7 @@ public function dataGetMemberProperties()
'nullable_type' => false,
],
],
[
'php8-union-types-pseudo-type-iterable-and-array' => [
'/* testPHP8PseudoTypeIterableAndArray */',
[
'scope' => 'public',
Expand All @@ -220,7 +220,7 @@ public function dataGetMemberProperties()
'nullable_type' => false,
],
],
[
'php8-union-types-duplicate-type-with-whitespace-and-comments' => [
'/* testPHP8DuplicateTypeInUnionWhitespaceAndComment */',
[
'scope' => 'public',
Expand Down

0 comments on commit 8b23ad7

Please sign in to comment.