File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed
fixtures/Controllers/Annotated Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -351,4 +351,16 @@ public function testLoadSortableAnnotatedClasses() : void
351351 return $ route ->getName ();
352352 }, $ routes ->all ()));
353353 }
354+
355+ /**
356+ * @return void
357+ */
358+ public function testLoadAbstractAnnotatedClass () : void
359+ {
360+ $ loader = new DescriptorLoader ();
361+ $ loader ->attach (Fixtures \Controllers \Annotated \AbstractAnnotatedController::class);
362+
363+ $ routes = $ loader ->load ();
364+ $ this ->assertFalse ($ routes ->has ('abstract-annotated-controller ' ));
365+ }
354366}
Original file line number Diff line number Diff line change 1+ <?php declare (strict_types=1 );
2+
3+ namespace Sunrise \Http \Router \Tests \Fixtures \Controllers \Annotated ;
4+
5+ use Sunrise \Http \Router \Tests \Fixtures \Controllers \AbstractController ;
6+
7+ /**
8+ * @Route("abstract-annotated-controller", path="/")
9+ */
10+ abstract class AbstractAnnotatedController extends AbstractController
11+ {
12+ }
You can’t perform that action at this time.
0 commit comments