diff --git a/tests/Core/File/GetClassPropertiesTest.php b/tests/Core/File/GetClassPropertiesTest.php index 17d5216040..1cb963c4b1 100644 --- a/tests/Core/File/GetClassPropertiesTest.php +++ b/tests/Core/File/GetClassPropertiesTest.php @@ -23,8 +23,8 @@ class GetClassPropertiesTest extends AbstractMethodUnitTest /** * Test receiving an expected exception when a non class token is passed. * - * @param string $testMarker The comment which prefaces the target token in the test file. - * @param array $tokenType The type of token to look for after the marker. + * @param string $testMarker The comment which prefaces the target token in the test file. + * @param int|string $tokenType The type of token to look for after the marker. * * @dataProvider dataNotAClassException * @@ -45,22 +45,22 @@ public function testNotAClassException($testMarker, $tokenType) * * @see testNotAClassException() For the array format. * - * @return array + * @return array> */ public function dataNotAClassException() { return [ 'interface' => [ - '/* testNotAClass */', - \T_INTERFACE, + 'testMarker' => '/* testNotAClass */', + 'tokenType' => \T_INTERFACE, ], 'anon-class' => [ - '/* testAnonClass */', - \T_ANON_CLASS, + 'testMarker' => '/* testAnonClass */', + 'tokenType' => \T_ANON_CLASS, ], 'enum' => [ - '/* testEnum */', - \T_ENUM, + 'testMarker' => '/* testEnum */', + 'tokenType' => \T_ENUM, ], ]; @@ -70,8 +70,8 @@ public function dataNotAClassException() /** * Test retrieving the properties for a class declaration. * - * @param string $testMarker The comment which prefaces the target token in the test file. - * @param array $expected Expected function output. + * @param string $testMarker The comment which prefaces the target token in the test file. + * @param array $expected Expected function output. * * @dataProvider dataGetClassProperties * @@ -91,94 +91,94 @@ public function testGetClassProperties($testMarker, $expected) * * @see testGetClassProperties() For the array format. * - * @return array + * @return array>> */ public function dataGetClassProperties() { return [ 'no-properties' => [ - '/* testClassWithoutProperties */', - [ + 'testMarker' => '/* testClassWithoutProperties */', + 'expected' => [ 'is_abstract' => false, 'is_final' => false, 'is_readonly' => false, ], ], 'abstract' => [ - '/* testAbstractClass */', - [ + 'testMarker' => '/* testAbstractClass */', + 'expected' => [ 'is_abstract' => true, 'is_final' => false, 'is_readonly' => false, ], ], 'final' => [ - '/* testFinalClass */', - [ + 'testMarker' => '/* testFinalClass */', + 'expected' => [ 'is_abstract' => false, 'is_final' => true, 'is_readonly' => false, ], ], 'readonly' => [ - '/* testReadonlyClass */', - [ + 'testMarker' => '/* testReadonlyClass */', + 'expected' => [ 'is_abstract' => false, 'is_final' => false, 'is_readonly' => true, ], ], 'final-readonly' => [ - '/* testFinalReadonlyClass */', - [ + 'testMarker' => '/* testFinalReadonlyClass */', + 'expected' => [ 'is_abstract' => false, 'is_final' => true, 'is_readonly' => true, ], ], 'readonly-final' => [ - '/* testReadonlyFinalClass */', - [ + 'testMarker' => '/* testReadonlyFinalClass */', + 'expected' => [ 'is_abstract' => false, 'is_final' => true, 'is_readonly' => true, ], ], 'abstract-readonly' => [ - '/* testAbstractReadonlyClass */', - [ + 'testMarker' => '/* testAbstractReadonlyClass */', + 'expected' => [ 'is_abstract' => true, 'is_final' => false, 'is_readonly' => true, ], ], 'readonly-abstract' => [ - '/* testReadonlyAbstractClass */', - [ + 'testMarker' => '/* testReadonlyAbstractClass */', + 'expected' => [ 'is_abstract' => true, 'is_final' => false, 'is_readonly' => true, ], ], 'comments-and-new-lines' => [ - '/* testWithCommentsAndNewLines */', - [ + 'testMarker' => '/* testWithCommentsAndNewLines */', + 'expected' => [ 'is_abstract' => true, 'is_final' => false, 'is_readonly' => false, ], ], 'no-properties-with-docblock' => [ - '/* testWithDocblockWithoutProperties */', - [ + 'testMarker' => '/* testWithDocblockWithoutProperties */', + 'expected' => [ 'is_abstract' => false, 'is_final' => false, 'is_readonly' => false, ], ], 'abstract-final-parse-error' => [ - '/* testParseErrorAbstractFinal */', - [ + 'testMarker' => '/* testParseErrorAbstractFinal */', + 'expected' => [ 'is_abstract' => true, 'is_final' => true, 'is_readonly' => false,