Skip to content

Commit

Permalink
Add test for misplaced tags
Browse files Browse the repository at this point in the history
  • Loading branch information
mecha committed Nov 9, 2023
1 parent 2466cc1 commit b659b23
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/functional/TaggingServiceProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@ public function testTagsRecognized()
$factories = [
'serviceX' =>
fn (): string => 'X',
'serviceY' =>
/**
* This @tag my_tag is misplaced.
*/
fn (): string => 'Y',
'serviceZ' =>
/** This @tag my_tag is misplaced. */
fn (): string => 'Z',
'serviceA' =>
/**
* @tag my_tag
Expand Down Expand Up @@ -52,5 +60,4 @@ public function __invoke(): string
$result = $container->get('serviceD');
$this->assertEquals('ABCD', $result);
}

}

0 comments on commit b659b23

Please sign in to comment.