File tree Expand file tree Collapse file tree 2 files changed +0
-11
lines changed
tests/Unit/Capability/Discovery Expand file tree Collapse file tree 2 files changed +0
-11
lines changed Original file line number Diff line number Diff line change 1616use phpDocumentor \Reflection \DocBlock \Tags \Deprecated ;
1717use phpDocumentor \Reflection \DocBlock \Tags \Param ;
1818use phpDocumentor \Reflection \DocBlock \Tags \See ;
19- use phpDocumentor \Reflection \DocBlock \Tags \Throws ;
2019use PHPUnit \Framework \TestCase ;
2120
2221class DocBlockParserTest extends TestCase
@@ -109,12 +108,6 @@ public function testGetTagsByNameReturnsSpecificTags()
109108
110109 $ this ->assertInstanceOf (DocBlock::class, $ docBlock );
111110
112- $ throwsTags = $ docBlock ->getTagsByName ('throws ' );
113- $ this ->assertCount (1 , $ throwsTags );
114- $ this ->assertInstanceOf (Throws::class, $ throwsTags [0 ]);
115- $ this ->assertEquals ('\\RuntimeException ' , (string ) $ throwsTags [0 ]->getType ());
116- $ this ->assertEquals ('if processing fails ' , $ throwsTags [0 ]->getDescription ()->render ());
117-
118111 $ deprecatedTags = $ docBlock ->getTagsByName ('deprecated ' );
119112 $ this ->assertCount (1 , $ deprecatedTags );
120113 $ this ->assertInstanceOf (Deprecated::class, $ deprecatedTags [0 ]);
Original file line number Diff line number Diff line change @@ -70,12 +70,8 @@ public function methodWithReturn(): string
7070 *
7171 * @return bool status of the operation
7272 *
73- * @throws \RuntimeException if processing fails
74- *
7573 * @deprecated use newMethod() instead
7674 * @see DocBlockTestFixture::newMethod()
77- *
78- * @phpstan-ignore-next-line throws.unusedType
7975 */
8076 public function methodWithMultipleTags (float $ value ): bool
8177 {
You can’t perform that action at this time.
0 commit comments