@@ -124,24 +124,12 @@ public function self_parameter_type() {
124124 Assert::equals ($ fixture , $ fixture ->getMethod ('fixture ' )->getParameter (0 )->getType ());
125125 }
126126
127- #[Test]
128- public function self_parameter_typeName () {
129- $ fixture = $ this ->type ('{ public function fixture(self $param) { } } ' );
130- Assert::equals ('self ' , $ fixture ->getMethod ('fixture ' )->getParameter (0 )->getTypeName ());
131- }
132-
133127 #[Test]
134128 public function self_parameter_type_via_apidoc () {
135129 $ fixture = $ this ->type ('{ /** @param self $param */ public function fixture($param) { } } ' );
136130 Assert::equals ($ fixture , $ fixture ->getMethod ('fixture ' )->getParameter (0 )->getType ());
137131 }
138132
139- #[Test]
140- public function self_parameter_typeName_via_apidoc () {
141- $ fixture = $ this ->type ('{ /** @param self $param */ public function fixture($param) { } } ' );
142- Assert::equals ('self ' , $ fixture ->getMethod ('fixture ' )->getParameter (0 )->getTypeName ());
143- }
144-
145133 #[Test]
146134 public function array_of_self_parameter_type_via_apidoc () {
147135 $ fixture = $ this ->type ('{ /** @param array<self> */ public function fixture($list) { } } ' );
@@ -156,14 +144,6 @@ public function parent_parameter_type() {
156144 Assert::equals ($ fixture ->getParentclass (), $ fixture ->getMethod ('fixture ' )->getParameter (0 )->getType ());
157145 }
158146
159- #[Test]
160- public function parent_parameter_typeName () {
161- $ fixture = $ this ->type ('{ public function fixture(parent $param) { } } ' , [
162- 'extends ' => [Name::class]
163- ]);
164- Assert::equals ('parent ' , $ fixture ->getMethod ('fixture ' )->getParameter (0 )->getTypeName ());
165- }
166-
167147 #[Test]
168148 public function parent_parameter_type_via_apidoc () {
169149 $ fixture = $ this ->type ('{ /** @param parent $param */ public function fixture($param) { } } ' , [
@@ -172,14 +152,6 @@ public function parent_parameter_type_via_apidoc() {
172152 Assert::equals ($ fixture ->getParentclass (), $ fixture ->getMethod ('fixture ' )->getParameter (0 )->getType ());
173153 }
174154
175- #[Test]
176- public function parent_parameter_typeName_via_apidoc () {
177- $ fixture = $ this ->type ('{ /** @param parent $param */ public function fixture($param) { } } ' , [
178- 'extends ' => [Name::class]
179- ]);
180- Assert::equals ('parent ' , $ fixture ->getMethod ('fixture ' )->getParameter (0 )->getTypeName ());
181- }
182-
183155 #[Test, Expect(ClassNotFoundException::class)]
184156 public function nonexistant_type_class_parameter () {
185157 $ this ->method ('public function fixture(UnknownTypeRestriction $param) { } ' )->getParameter (0 )->getType ();
0 commit comments